We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11d4fb9 commit b28aeabCopy full SHA for b28aeab
core/src/components/router/router.tsx
@@ -89,6 +89,9 @@ export class Router {
89
/** Navigate to the specified URL */
90
@Method()
91
push(url: string, direction: RouterDirection = 'forward') {
92
+ if (url.startsWith('.')) {
93
+ url = (new URL(url, window.location.href)).pathname;
94
+ }
95
console.debug('[ion-router] URL pushed -> updating nav', url, direction);
96
97
const path = parsePath(url);
0 commit comments