You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(vanilla): fix base path handling for vanilla push state
This fixes the vanilla PushState location service handling of `base` tags.
This change attempts to match the behavior of https://html.spec.whatwg.org/dev/semantics.html#the-base-element
If a base tag is '/base/index.html' and a state with a URL of '/foo' is activated, the URL will be '/base/foo'.
If the url exactly matches the base tag, it will route to the state matching '/'.
This also addresses a longstanding bug where base tags which didn't end in a slash (such as '/base')
had their last character stripped (i.e., '/bas'), and therefore didn't work.
Now base tags like that should work as described above.
Closes#54Closesangular-ui/ui-router#2357
0 commit comments