Skip to content

How to get current route in view ? #3524

Answered by WeyIin
Barbapapazes asked this question in Help
Discussion options

You must be logged in to vote

Alternatively you can use something like this too

{{ (request.matchesRoute('namedRoute')) ? 'tab-active' : 'tab-inactive' }}

Replies: 2 comments 3 replies

Comment options

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

Comment options

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

@Barbapapazes
Comment options

Answer selected by Barbapapazes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants