Rewrite #nXXX to #LXXX in incoming gitea urls
We can't rewrite hashes with mod_rewrite, as they are client-side and are not sent to the server. Instead, put in a javascript snippet to rewrite them in the format that gitea is looking for. We only need to handle single lines, as cgit doesn't handle ranges. Change-Id: I6226e420838a88276a86e406c40f6707eb090310
This commit is contained in:
parent
40cc016ce2
commit
fe078ed994
@ -1,4 +1,7 @@
|
||||
<div class="header-wrapper">
|
||||
<script>
|
||||
window.location.hash.replace(/#n(\d*)/, '#L$1');
|
||||
</script>
|
||||
{{with .Repository}}
|
||||
<div class="ui container">
|
||||
<div class="ui stackable grid header-grid">
|
||||
|
Loading…
Reference in New Issue
Block a user