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
When a non-empty root is set during router start, routing of clicked anchors fails.
This happens because the anchor pathname is used, which includes the root, which is passed to navigate, which passes that to getFragment, which fails to remove the root from the fragment.
The text was updated successfully, but these errors were encountered:
this.router = new Router();
var oldGetFragment = this.router.history.getFragment;
this.router.history.getFragment = function (fragment) {
if(fragment) {
var root = this.root.slice(1);
if (!fragment.indexOf(root)) fragment = fragment.slice(root.length);
}
return oldGetFragment.call(this, fragment);
};
When a non-empty root is set during router start, routing of clicked anchors fails.
This happens because the anchor pathname is used, which includes the root, which is passed to navigate, which passes that to getFragment, which fails to remove the root from the fragment.
The text was updated successfully, but these errors were encountered: