fix: valid extension's name for url

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2020-11-12 22:59:44 +02:00
1 parent ad01786fc0
commit 97068f4c07
1 file changed
+2 -1
+2 -1
View File
@@ -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 = "") {