Skip to content

Commit

Permalink
fix: correct edit this page path
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoh committed Mar 25, 2024
1 parent ea47a78 commit 314c556
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import govOpsLogo from '@images/footer/govops-logo.png';
import netlifyLogo from '@images/footer/netlify.svg';
const sha = import.meta.env.COMMIT_REF?.substring(0, 8) ?? 'dev';
const removeSlash = (path: string) => path.replace(/\/$/, '');
---

<section>
Expand Down Expand Up @@ -134,7 +136,7 @@ const sha = import.meta.env.COMMIT_REF?.substring(0, 8) ?? 'dev';
</li>
<li>
<a
href={`https://github.com/agrc/gis.utah.gov/tree/main/src/pages${Astro.url.pathname}.astro`}
href={`https://github.com/agrc/gis.utah.gov/tree/main/src/pages${removeSlash(Astro.url.pathname)}.astro`}
class="custom-style rounded hover:underline focus:outline-none focus:ring-1 focus:ring-accent"
>Edit this page</a
>
Expand Down

0 comments on commit 314c556

Please sign in to comment.