Fix incorrect subpath in links (#29535)

* `$referenceUrl`: it is constructed by "Issue.Link", which already has
the "AppSubURL"
* `window.location.href`: AppSubURL could be empty string, so it needs
the trailing slash
This commit is contained in:
wxiaoguang authored and GitHub committed 2024-03-02 12:02:34 +00:00
1 parent 9043584779
commit c0c2cb933b
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -75,7 +75,7 @@ export function initStopwatch() {
type: 'close',
});
worker.port.close();
window.location.href = appSubUrl;
window.location.href = `${appSubUrl}/`;
} else if (event.data.type === 'close') {
worker.port.postMessage({
type: 'close',