Skip to content

Commit 806a9b7

Browse files
committed
Add custom footer to fix edit URL
1 parent 8175566 commit 806a9b7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

_includes/footer_custom.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<script>
2+
const button = document.getElementById('edit-this-page');
3+
const oldUrl = button.href;
4+
const newUrl = oldUrl.replace('/main-repo/', '/');
5+
button.href = newUrl;
6+
</script>

0 commit comments

Comments
 (0)