1
0
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:
Roman 2020-11-12 22:59:44 +02:00
parent ad01786fc0
commit 97068f4c07

View File

@ -45,7 +45,8 @@ export class LensExtension {
}
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 = "") {