start_page url not working for role? #13186
stephenmeehanuk
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Here's the code that figures it out: $url = config('statamic.cp.route').'/'.Preference::get('start_page', config('statamic.cp.start_page'));What is your CP route set to? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've edited the
start_pageURL for a role calledgm_editorinresources/users/roles.yaml, it looks like this:When I login as a user assigned with the
gm_editorrole, it redirects here:/cp//cp/collections/gm_pagesI'm also using the
cp navpreferences feature, and noticed the url for each item doesn'tinclude the
/cppart, it's like thisurl: collections/gm_pagesSo I tried that too,
But it still redirects to
/cp//cp/collections/gm_pagesThis is a
multisite.Beta Was this translation helpful? Give feedback.
All reactions