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

Can't Set Path to Root / #52

Closed
mdavis1982 opened this issue Aug 23, 2018 · 7 comments
Closed

Can't Set Path to Root / #52

mdavis1982 opened this issue Aug 23, 2018 · 7 comments

Comments

@mdavis1982
Copy link

Version: 1.0.5

TL;DR
When trying to set my path to '/' in the Nova config, I get:

No hint path defined for [nova].

Expanded Explanation
I have a situation where a CRUD based dashboard is basically our entire application. We're writing a management interface for some data that will be served up via an API to other products.

I want to set the root path of Nova to '/' so that our customer service people are greeted with the login form as soon as they go to the domain that Nova will be used on.

Is this possible and I'm just missing something?

Thanks 😄

@zachweix
Copy link

I don't have Nova and therefore I can't say for certain, but you can create a route in the routes file that redirects '/' to '/nova'

@mdavis1982
Copy link
Author

@zachweix I could do that, for sure. But then I'd still have Nova in my URI.

@zachweix
Copy link

@mdavis1982 Well, from what it sounds like, you can have other words, in which case you can have it forward to '/app' or '/dashboard' or something else that looks good

@anderly
Copy link

anderly commented Aug 23, 2018

@mdavis1982, noticed this as well. For now, I've done what @zachweix mentioned and changed to /dashboard. However, being able to set it to '' or '/' would be nice.

@ghost
Copy link

ghost commented Aug 23, 2018

Can't change nova-api root routes

@oanqa
Copy link

oanqa commented Aug 30, 2018

This error occurred when FileViewFinder cannot find the nova namespace in application. When nova bootstraping the provider nova check the request if the request intend to Nova application, see Laravel\Nova\Http\Middleware\ServeNova.
So for changing the root you can extend the ServeNova middleware or you can register the Laravel\Nova\NovaServiceProvider in your application providers config

@taylorotwell
Copy link
Member

Fixed.

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

No branches or pull requests

5 participants