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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Content & Markdown

Redirect to user page on front-end login?

Started by Sean 8 years ago · 0 replies · 760 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, 8 months ago
6 103 8 months ago
Content & Markdown · by Ton Haarmans, 1 year ago
10 187 1 year ago
Content & Markdown · by Jan L'Am, 1 year ago
4 148 1 year ago
Content & Markdown · by Leonardo, 1 year ago
3 63 1 year ago
Content & Markdown · by belthasar, 1 year ago
4 259 1 year ago