Fix another comment
This commit is contained in:
parent
e1a8bd333d
commit
5332f99a5a
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ function relativeURLFix() {
|
||||||
// special case: a relative anchor link to the current page
|
// special case: a relative anchor link to the current page
|
||||||
newHref += `/${path}/${url.href}`;
|
newHref += `/${path}/${url.href}`;
|
||||||
} else {
|
} else {
|
||||||
// any other relative link
|
// any other same origin link
|
||||||
// NOTE: this does strip off serialized queries and fragments
|
// NOTE: this does strip off serialized queries and fragments
|
||||||
newHref += (url.pathname.endsWith('/') ? url.pathname : url.pathname + '/');
|
newHref += (url.pathname.endsWith('/') ? url.pathname : url.pathname + '/');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue