fix(router): avoid two slash values between the baseHref and the path
This commit is contained in:

committed by
Brian Ford

parent
e372cc779d
commit
cdc7b03e67
@ -62,5 +62,8 @@ function stripIndexHtml(url: string): string {
|
||||
if (url.length > 10 && StringWrapper.substring(url, url.length - 11) == '/index.html') {
|
||||
return StringWrapper.substring(url, 0, url.length - 11);
|
||||
}
|
||||
if (url.length > 1 && url[url.length - 1] == '/') {
|
||||
url = StringWrapper.substring(url, 0, url.length - 1);
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
Reference in New Issue
Block a user