root redirect doesnt work
See original GitHub issue// in app/routes/index.js:
import Ember from 'ember';
const { Route } = Ember;
export default Route.extend({
redirect() {
this.transitionTo('public.contact');
}
});
This does redirect when the app boots on clients browser, however fastboot doesnt redirect this.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Root Route Not Redirecting in Express - node.js
My issue stems around strictly the '/' route.
Read more >Root domain not loading - HubSpot Knowledge Base
Learn why your root domain doesn't load over HTTPS and how to address it. ... To redirect traffic from a root domain to...
Read more >Redirect on the root domain doesn't work - Support
I would like to setup a permanent redirect on the root URL of my project. So, this address - https://jarmos.netlify.app should redirect to ......
Read more >Redirects from your root domain to www does not work #2527
Issue or question Right now we have the following configuration. I've tried multiple other approaches like removing the root domain from domain ......
Read more >How to Redirect Non-www to www URLs - Hostinger
If the above method doesn't work, you can set the redirect manually by editing the .htaccess file: From your cPanel dashboard, go to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
ok, now that it looks like we fixed https://github.com/ember-learn/ember-api-docs/issues/427 That makes this issue our biggest hinderance for SEO in api docs, because the link to API on the emberjs.com website goes to https://emberjs.com/api , which does a route transition to a landing page.
Now eventually we want to add a landing page to /api that describes the overal api docs app, so this may be a moot point when that happens but until then we are hampering seo by returning a blank page from fastboot here (when js takes over on the browser it does the appropriate redirect)
@kratiahuja @rwjblue A not-so-minimal reproduction is the api docs app…
Where something like https://ember-api-docs.herokuapp.com/api/ember/2.18/classes/Engine gives a fastboot rendered page, while going just to https://ember-api-docs.herokuapp.com transitions to the first module, but does it client side, and the document returned from fastboot has no server-rendered content (only the base javascript/style imports to allow things to happen client side like a regular ember app)
(using the heroku url instead of emberjs.com to remove any proxying and fastly caching from the equation)