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

Need ability to exclude some paths from route #96

Open
alexsavin opened this issue Dec 21, 2020 · 2 comments
Open

Need ability to exclude some paths from route #96

alexsavin opened this issue Dec 21, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@alexsavin
Copy link

alexsavin commented Dec 21, 2020

I have a site build with Svelte and some directories / files in it that are not part of application. On main page I have link to these files like [a href="https://mysite.com/somepath/somefile.html"]...[/a]
When I click on this link the 404 error occurs. When I open this link from browser address bar it opens. How I can say router to ignore this link and redirect browser to this link w/o 404 error?

@jorgegorka jorgegorka added the enhancement New feature or request label Jan 4, 2021
@jorgegorka
Copy link
Owner

Hi @alexsavin

I'm currently working on this right now.

Anyway, maybe the path prefix can solve your issues: https://github.com/jorgegorka/svelte-router#route-prefix

@muttoni
Copy link

muttoni commented Apr 30, 2021

Any updates on this? I'm facing the same issue and direct links to file downloads don't work since they are interpreted as paths. Other than that really enjoying your library!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants