Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Redirect to user page on front-end login?

Started by Sean 8 years ago · 0 replies · 1050 views
8 years ago

Can I modify a Theme Markdown file to force a redirect upon login based on grav.user.username or the first group that appears in their accounts YAML file?

So, user littlepup (first group in account YAML is puppywrestle), is redirected to:
/projects/littlepup
via something like this:
/projects/{{ grav.user.username }}

Or even better, redirected upon login to:
/projects/puppywrestle

Thanks in advance!

last edited 12/13/18 by Sean

Suggested topics

Topic Participants Replies Views Activity
Content & Markdown · by Jochen, 1 year ago
6 1663 1 year ago
Content & Markdown · by Ton Haarmans, 2 years ago
10 1235 2 years ago
Content & Markdown · by Jan L'Am, 2 years ago
4 1099 2 years ago
Content & Markdown · by Leonardo, 2 years ago
3 1002 2 years ago
Content & Markdown · by belthasar, 2 years ago
4 1492 2 years ago