We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Problem
Link is not active when redirecting from "/" on application load.
But using class: if (path == Route::Home {}) { "active" } instead of active_class: "active" works
class: if (path == Route::Home {}) { "active" }
active_class: "active"
Steps To Reproduce
Steps to reproduce the behavior:
enum Route { #[redirect("/", || Route::Home {})] #[route("/home")] Home {}, }
Expected behavior
The active_class should be added to the Link component.
Screenshots
In the screenshots bellow I am showing the current route in the component using use_route above the Link.
Right after the application being opened:
After clicking on the Link:
Environment:
Questionnaire
I don't have time to fix this right now, but maybe later
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem
Link is not active when redirecting from "/" on application load.
But using
class: if (path == Route::Home {}) { "active" }
instead ofactive_class: "active"
worksSteps To Reproduce
Steps to reproduce the behavior:
Expected behavior
The active_class should be added to the Link component.
Screenshots
In the screenshots bellow I am showing the current route in the component using use_route above the Link.
Right after the application being opened:
After clicking on the Link:
Environment:
Questionnaire
I don't have time to fix this right now, but maybe later
The text was updated successfully, but these errors were encountered: