The default panel page after login is panel/site. But if I create a user role that can’t actually edit anything there, that doesn’t make much sense.
For example, I’m building a site where some users can only edit their own account. But the account page is hidden in the menu. It would make more sense to redirect them to panel/account instead. Or if I make a user role that can only edit a specific page, I’d want to take them straight to that specific page in the panel.
The only workaround currently is to give the user to url to the page where you want to direct them since they would then automatically go there after login, but that means different login urls for different roles which is only going to confuse my clients.
It would be nice if we had a user blueprint option where we could define this, for example:
defaultPanel: panel/account
Maybe this is an edge case, would love to hear other opinions.
Have You tried to accomplish this with a user.login:after hook?
I would like to see options for different “panel home pages” based on role so they can have a dashboard catered for them to manage “their” content.
@Cris unfortunately this is not possible. You cannot trigger redirects in hooks.
@Mail that would be the deluxe version in my opinion as well!
Oh, thanks for clarifying @Bastian!
…or at least to be able to have different panel (site.yml) settings for different roles.