Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative links in root get broken after navigation (GitHub Pages) #12

Open
prathwik0 opened this issue Aug 29, 2023 · 2 comments · Fixed by #19
Open

Relative links in root get broken after navigation (GitHub Pages) #12

prathwik0 opened this issue Aug 29, 2023 · 2 comments · Fixed by #19
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@prathwik0
Copy link
Member

Try it yourself

Images for reference

frontend-components/positioning/static 404
@prathwik0 prathwik0 added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers labels Aug 29, 2023
@05hiteshbansal
Copy link

i m interested in this issue can you assign me

@prathwik0
Copy link
Member Author

Yeah! Would be grateful for any help. One way to fix is is to use absolute links

<script lang="ts">
  import { base } from "$app/paths";
</script>

# we can write absolute links like this
<a href="{base}/">...</a>

But I would like to know what causes this behaviour and if this could be fixed while still using relative links.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants