Skip to content

Commit

Permalink
fix: main button base path not being rendered
Browse files Browse the repository at this point in the history
  • Loading branch information
ubermanu committed Sep 19, 2023
1 parent 967464c commit f6bcd62
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sites/magefront/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
import { base } from '$app/paths'
import Footer from '$lib/components/Footer.svelte'
import Header from '$lib/components/Header.svelte'
// This is a hack to get around the fact that SvelteKit doesn't
// insert the base path into the href attribute of the main button ???
const weird = base
</script>

<svelte:head>
Expand All @@ -23,7 +27,7 @@
<span class="text-red-600">Tailwind</span>, <span class="text-red-600">Svelte</span>, <span class="text-red-600">TypeScript</span>,
and more.
</p>
<a href="{base}/docs/getting-started" class="btn btn-lg mt-4">Get Started</a>
<a href="{weird}/docs/getting-started" class="btn btn-lg mt-4">Get Started</a>
</div>
</section>

Expand Down

0 comments on commit f6bcd62

Please sign in to comment.