fix(router): router push with relative path (#24719)

Resolves #24718
This commit is contained in:
Victor Berchet
2022-02-07 11:26:57 -08:00
committed by GitHub
parent 231d6df622
commit d40c0c3a09
5 changed files with 45 additions and 11 deletions

View File

@ -2197,11 +2197,11 @@ export namespace Components {
"navChanged": (direction: RouterDirection) => Promise<boolean>;
"printDebug": () => Promise<void>;
/**
* Navigate to the specified URL.
* @param url The url to navigate to.
* Navigate to the specified path.
* @param path The path to navigate to.
* @param direction The direction of the animation. Defaults to `"forward"`.
*/
"push": (url: string, direction?: RouterDirection, animation?: AnimationBuilder | undefined) => Promise<boolean>;
"push": (path: string, direction?: RouterDirection, animation?: AnimationBuilder | undefined) => Promise<boolean>;
/**
* The root path to use when matching URLs. By default, this is set to "/", but you can specify an alternate prefix for all URL paths.
*/