Skip to content
Discussion options

You must be logged in to vote

Let me tell you another way to reproduce it:

Lets say you have a resource named customers and a nova tool named Charts

1)Open google chrome and add the following url in the address bar : 127.0.0.1:8000/nova/resources/customers
It will automatically redirect you to : 127.0.0.1:8000/nova/login
2) Open google chrome and add the following url in the address bar : 127.0.0.1:8000/nova/charts
You will get 404 error "page not found"

So in step 1 the redirection works as expected but when you try to navigate to a tool address the redirection not working


Solution

You can add Laravel\Nova\Http\Middleware\Authenticate middleware to Tool's inertia routes to redirect guest user to login page instead …

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@crynobone
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@crynobone
Comment options

@Pamposgsk
Comment options

Answer selected by crynobone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4337 on May 30, 2022 09:52.