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
If I use Y.Route with a base, then I expect the router only to work for urls that are in that base. If I have a root "/myapp/" then when a user clicks on a link "/", I want that to leave the app and navigate to the base of the website, not the base of my applet.
removeRoot only strips the the root if it exists, I think it should enforce the root, so that I can have both links that navigate within the app, as well as links that can naviagte outside the app
The text was updated successfully, but these errors were encountered:
This enforces routers with a specified `root` to only consider paths as
matching its route handles if that path is semantically within the
router's `root` path. For example:
router.set('root', '/app/');
router.hasRoute('/app/'); // => true
router.hasRoute('/app/foo'); // => true
router.hasRoute('/bar/'); // => false
This change fixes some issues with paths being erroneously considered
matching even when they were not semantically within the router's `root`
path.
The `getPath()` method now returns the _full_ current path, whereas
before it returned the current path relative to the router's `root`.
These changes will break backwards compatibility with some apps, but
fix some fundamental issues with how Y.Router handled `root` paths.
Fixesyui#1083
If I use Y.Route with a base, then I expect the router only to work for urls that are in that base. If I have a root "/myapp/" then when a user clicks on a link "/", I want that to leave the app and navigate to the base of the website, not the base of my applet.
removeRoot only strips the the root if it exists, I think it should enforce the root, so that I can have both links that navigate within the app, as well as links that can naviagte outside the app
The text was updated successfully, but these errors were encountered: