Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent output from Router.current().url #7

Open
Sivli-Embir opened this issue Oct 23, 2014 · 1 comment
Open

Inconsistent output from Router.current().url #7

Sivli-Embir opened this issue Oct 23, 2014 · 1 comment

Comments

@Sivli-Embir
Copy link

As posted in this issue iron-meteor/iron-router#917, the output if Iron.Location.get() is not consistent.

//on the first run route
Iron.Location.get().rootUrl //output "http://localhost:3000"

vs

//on every follow up visit of localhost:3000/
Iron.Location.get().rootUrl //output ""

I have confirmed the issue only happens on meteor startup. As soon as you navigate away from the initial page Iron.Location.get() returns normal output.

@karldanninger
Copy link

Same here, very inconsistent between my local dev environment, staging, and production.

Relavent link: iron-meteor/iron-router#917

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants