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

Side Menu not working properly when using with Laravel #55

Open
stiffroy opened this issue Jul 5, 2018 · 2 comments
Open

Side Menu not working properly when using with Laravel #55

stiffroy opened this issue Jul 5, 2018 · 2 comments

Comments

@stiffroy
Copy link

stiffroy commented Jul 5, 2018

I am using this package with my Laravel (v5.6) project. Things are going pretty well but I am having some issue with the side menu. Whenever I click on any menu link, the right template is rendered and the page is properly displayed. But the menu link is not set as 'active'. This is not a big issue but I am looking forward to solve this minor issue with your help.
The route name and its relevant URL is something like this -> {domain_name}/#/{vue_route} . To mention here, the '#' comes by default from the settings of Laravel Mix and Webpack.

@stiffroy
Copy link
Author

stiffroy commented Sep 4, 2018

What I made out this far, was a different problem. It was nothing about the # but the main problem came with the class naming of the Vue-Router. So I have changed/overwritten the default routes active menu links as:
linkActiveClass: ''
and
linkExactActiveClass: 'active'
when building the Router.
But the problem that I am still facing is, in the parent li element of the active link, which has a class of 'treeview' it gets a class called 'menu-open' which shouldn't be the case and should have a class named 'active'. Any clue on how to achieve this?

@thond1st
Copy link

thond1st commented Jan 2, 2019

Hi @stiffroy ,
I am also planning to use vue2-admin-lte with an old Laravel 5.4 project.
Any chance you could share the steps you did for integration? Or tutorial links you might have used will be a lot of help.
Having troubles like using the current Laravel routing. There will be existing pages that will not be translated to AdminLte yet.
Still a newbie on Vue.JS :)
Thanks in advance!

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

2 participants