Browse Source

Merge "Rewrite #nXXX to #LXXX in incoming gitea urls"

changes/52/636452/1
Zuul 6 months ago
parent
commit
e6a478ee05
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      docker/gitea/custom/templates/repo/header.tmpl

+ 3
- 0
docker/gitea/custom/templates/repo/header.tmpl View File

@@ -1,4 +1,7 @@
1 1
 <div class="header-wrapper">
2
+<script>
3
+  window.location.hash.replace(/#n(\d*)/, '#L$1');
4
+</script>
2 5
 {{with .Repository}}
3 6
 	<div class="ui container">
4 7
 		<div class="ui stackable grid header-grid">

Loading…
Cancel
Save