fix navigation with URL base set

This commit is contained in:
Harvey Tindall
2021-02-05 13:31:56 +00:00
parent 23fecb16b2
commit 6691ae27f4
4 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ export class DOMInvite implements Invite {
for (let split of ["#", "?"]) {
codeLink = codeLink.split(split)[0];
}
this._codeLink = codeLink + "invite/" + code;
this._codeLink = codeLink + window.URLBase + "invite/" + code;
const linkEl = this._codeArea.querySelector("a") as HTMLAnchorElement;
if (this.label == "") {
linkEl.textContent = code.replace(/-/g, '-');