mirror of
https://github.com/ReVanced/revanced-website.git
synced 2026-01-20 09:43:57 +00:00
refactor: use URL class over manually splitting
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
<li><a href="/download">Download</a></li>
|
||||
<li><a href="/patches">Patches</a></li>
|
||||
<li><a href="/contributors">Contributors</a></li>
|
||||
<li><a href="{$page.url.toString().split('/')[0]}/docs/">Docs</a></li>
|
||||
<li><a href="{new URL($page.url).hostname}/docs/">Docs</a></li>
|
||||
</FooterSection>
|
||||
<FooterSection title="Repositories">
|
||||
<Query {query} let:data>
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
<Navigation queryKey="manager" href="/download">Download</Navigation>
|
||||
<Navigation queryKey="patches" href="/patches">Patches</Navigation>
|
||||
<Navigation queryKey="repositories" href="/contributors">Contributors</Navigation>
|
||||
<Navigation href="{$page.url.toString().split('/')[0]}/docs/">Docs</Navigation>
|
||||
<Navigation href="{new URL($page.url).hostname}/docs">Docs</Navigation>
|
||||
</div>
|
||||
</div>
|
||||
<div id="secondary-navigation">
|
||||
|
||||
Reference in New Issue
Block a user