question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:open
  • Created 7 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
toddjordancommented, Mar 22, 2018

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)

0reactions
toddjordancommented, Feb 14, 2018

@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)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found