mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix: valid extension's name for url
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
parent
ad01786fc0
commit
97068f4c07
@ -45,7 +45,8 @@ export class LensExtension {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getPageUrl(baseUrl = "") {
|
getPageUrl(baseUrl = "") {
|
||||||
return compile(this.routePrefix)({ name: this.name }) + baseUrl;
|
const validUrlName = this.name.replace("@", "").replace("/", "-");
|
||||||
|
return compile(this.routePrefix)({ name: validUrlName }) + baseUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
getPageRoute(baseRoute = "") {
|
getPageRoute(baseRoute = "") {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user