My client is asking me to route the backend users to a certain page when login.
Let’s say I want them to be routed to the rainlab blogs backend page, how can we do that ?
thanks for your inputs
My client is asking me to route the backend users to a certain page when login.
Let’s say I want them to be routed to the rainlab blogs backend page, how can we do that ?
thanks for your inputs
You can override the backend login redirect using the backend auth event.
OctoberCMS backend URLs usually follow:
/backend/{author}/{plugin}/{controller}
So for RainLab Blog posts:
/backend/rainlab/blog/posts
thanks @deepvyas
I implemented something else, listening for the event backend.page.beforeDisplay and checking if it is a post method if (\Request::method() === 'POST' && post('postback')) {
this could be a useful feature to add to the backend role.
For each of them we could decide their initial page, choosing through all the registered backend routes.