mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 03:18:24 +00:00 
			
		
		
		
	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:
		| @@ -112,7 +112,7 @@ export function initNotificationCount() { | ||||
|           type: 'close', | ||||
|         }); | ||||
|         worker.port.close(); | ||||
|         window.location.href = appSubUrl; | ||||
|         window.location.href = `${appSubUrl}/`; | ||||
|       } else if (event.data.type === 'close') { | ||||
|         worker.port.postMessage({ | ||||
|           type: 'close', | ||||
|   | ||||
| @@ -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', | ||||
|   | ||||
		Reference in New Issue
	
	Block a user