-
Notifications
You must be signed in to change notification settings - Fork 129
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
'Active' Class on Navbar Links #304
Comments
Hi Can you give me a snippet? |
Here is a simple snippet of what I’m trying. {!!
Thanks.
|
You need to use route('foo') instead - we do a full match for the active links. |
Thanks for your help. I’m not sure what you mean by “instead.” What does route(‘foo’) replace? Thanks.
|
Replace If you take a look at Bootstrapper\Navigation you'll see we do
|
I tried that, it doesn’t work for me. It tells me that my route is not defined. Here is how I defined my route: Route::get('about', 'PagesController@about’); Is this not correct? Thanks,
|
Ah - if you're not using Named Routes then you should be using Essentially - the |
OK, great, it's working. Thanks for your help. Would you recommend I use a On Thu, Dec 10, 2015 at 8:28 AM, Patrick Rose notifications@github.com
|
I find named routes to be much easier to work with, mainly because |
I am creating a Navbar. It creates it fine, but it's not applying the "active" class. From I understood it should do it automatically. Am I wrong? Thanks.
The text was updated successfully, but these errors were encountered: