SvelteKit: Wieso geht die Verlinkung nicht?

<script lang="ts"></script>
<div class="flex flex-row md:h-[2.8rem] bg-black-800">
  <div class="">
    <button class="text-white md:py-2">
      Beta Version 🆕 Still in Development 🚧 Happy Halloween 🎃
    </button>
    <a href="src/routes/policy" class="text-white md:py-2">Policy</a>
  </div>
</div>

Wieso funktioniert das Verlinken in SvelteKit einfach nicht?

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
6 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Babelfish
1 year ago

The link is of course only /policy without /src/routes. Change that and delete the browser cache. If that doesn’t work, write the error message?

guteantwort626
1 year ago

The link only needs

/policy

without /src/routes, see https://kit.svelte.dev/docs/routing

guteantwort626
1 year ago
Reply to  DotNetCreep

Then something is wrong with your setup

guteantwort626
1 year ago

Not normally used