In an Ember app I'm building, I have a hash-only link like so: <a href="#foo">Foo</a>
, on a page that isn't the root (i.e. localhost/bar
). If I inspect the element in the console, the href
property is localhost#foo
, instead of localhost/bar#foo
like it is on other sites. window.location.href
return localhost/bar
, so the browser definitely knows where it is.
What could be causing this discrepancy?
Aucun commentaire:
Enregistrer un commentaire