Monorepo for Tangled tangled.org
856
fork

Configure Feed

Select the types of activity you want to include in your feed.

appview/pages: preserve hash on permalink navigation

Signed-off-by: oppiliappan <me@oppi.li>

+1 -1
+1 -1
appview/pages/templates/repo/fragments/permalinkShortcut.html
··· 7 7 document.addEventListener('keydown', (e) => { 8 8 if(e.key === 'y' && !e.ctrlKey && !e.metaKey && !e.altKey) { 9 9 if(e.target.tagName === 'INPUT' || e.target.tagName === 'TEXTAREA') return; 10 - const permalinkUrl = '/{{ .RepoInfo.RepoIdentifier }}/tree/{{ .LastCommitInfo.Hash }}/{{ .Path }}'; 10 + const permalinkUrl = '/{{ .RepoInfo.RepoIdentifier }}/tree/{{ .LastCommitInfo.Hash }}/{{ .Path }}' + window.location.hash; 11 11 window.location.href = permalinkUrl; 12 12 } 13 13 }, {signal: abortController.signal});