iron-meteor/iron-location

Inconsistent output from Router.current().url

Sivli-Embir opened this issue · 1 comments

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.

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

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