Skip to content
Grav 2.0 is officially stable. Read the announcement →
Content & Markdown

Redirect to user page on front-end login?

Started by Sean 8 years ago · 0 replies · 812 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, 9 months ago
6 440 9 months ago
Content & Markdown · by Ton Haarmans, 1 year ago
10 426 1 year ago
Content & Markdown · by Jan L'Am, 1 year ago
4 360 1 year ago
Content & Markdown · by Leonardo, 1 year ago
3 286 1 year ago
Content & Markdown · by belthasar, 2 years ago
4 562 2 years ago