FIX: pretty-text shims - getURL's baseUri (#20822)

This commit is contained in:
Renato Atilio
2023-03-30 09:35:06 -03:00
committed by GitHub
parent 74312a6c52
commit 7afcb664fb
2 changed files with 22 additions and 1 deletions

View File

@ -78,7 +78,7 @@ function __getURLNoCDN(url) {
return url;
}
if (url.includes(__paths.baseUri)) {
if (url.startsWith(`${__paths.baseUri}/`) || url === __paths.baseUri) {
return url;
}
if (url[0] !== "/") {