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

Is there any way to check if a menu is active or not in any template ( twig ) #38

Open
insaurabh opened this issue Feb 4, 2019 · 0 comments

Comments

@insaurabh
Copy link

insaurabh commented Feb 4, 2019

I want to disable a nav in menu for some time, and if disabled nav is opened directly i want to redirect user to home page.
This can be achieved using .htaccess

Redirect 302 /win /index.php

But is it possible to do in a template as well.

Like
if win is active
{% redirect "somepage" 302 %}

I mean is there any inbuilt function on method we can call to check.

Thank You.

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

1 participant