This repository was archived by the owner on Oct 22, 2024. It is now read-only.
Nextjs Link component & non-public routes #28
Unanswered
MacaylaMarvelous81
asked this question in
Q&A
Replies: 2 comments 2 replies
|
@MacaylaMarvelous81 I tried to replicate this, but in my tests everything works as intended, including anchor tags initialized with public_routes:
- /
- _next/static/*
- route/*
- about |
2 replies
|
Alright, I made an example at MacaylaMarvelous81/space-public-link-ex. There's also a builder instance [here](https://splex-1-a7786960.deta.app).
The third link at the top 'Secret' isn't supposed to be able to be accessed with the link.
Sorry about my delay :)
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I think that the Link component from nextjs enables navigating from public routes to non-public routes without authentication, since it loads a json file from _next instead. How do I stop this from happening? do I have to use anchor tags, or list files in _next, use another micro, or something else?
My public_routes look like this:
I can't access /dashboard directly, but I can navigate to it through a Link.
All reactions