V8-archive: Project specific url is not working as expected with multiple public projects

Created on 17 Jan 2020  Â·  6Comments  Â·  Source: directus/v8-archive

Hello directus community;

• Version of Directus
8.3.1

• Error message (if any)
There is no error message.

• Steps to reproduce
Situation -> 3 public projects A,B,C is configured for directus installation on server.

1- Access to any project by using project specific url :
https:///admin/#/login?project=B

2- Admin panel is showing combo-box with all public projects and project "A" is already choosen, but expectation is to see project "B" selected, as it is given via uri-parameter in the request.

Project specific url is not working as expected, and app is loading projects in alphabetical order on combo-box(in default). Project "A" is selected for web-request "https:///admin/#/login?project=B" even project B was used in request.

Thanks for your answer in advance.

app

Most helpful comment

That would be a nice solution.
Will also help with remote support on the phone without viewing the persons screen.

All 6 comments

Also for private projects
login?project=privateproject he doesn't "select" the project.
but changes the URL without the ?project parameters.

We're considering changing the URL to always include the project key, even for public pages like login or reset password. That should relieve the issues mentioned above as well.

That would be a nice solution.
Will also help with remote support on the phone without viewing the persons screen.

If I may add my two cents worth, on Directus v8.5.5.

I have two projects, both private. Project A is the project I've created during installation and Project B I've created later.
When I'm logging in with ?project=project-a I get the normal login form.
However, when I'm logging in with ?project=project-b the login form presents the project selector with selected Project B but with Project A visible and selectable.
If I'm understanding correctly, there should be no project selector since both of my projects are private. What's more puzzling, the project selector is showing only on Project B login and never on Project A login page.

Cheers.

@WebShapedBiz — my guess is that this is because I've you're logged into a project, you can see it in the project chooser for easier access. Not sure why it's only working in one direction though. But I'll let @rijkvanzanten confirm.

Thank you very much @benhaynes for your time and effort.
I wasn't logged in in either project and was using a browser (Firefox) that is configured not to accept any cookies or to remember no history, logins or anything. Squeaky clean browser and still getting this type of behavior.
Also, I believe it shouldn't even matter if the user is logged in in one of the private projects, the list/selector of all private projects just shouldn't be visible on front-end login form in any scenario.

Once again thank you for your support.

Cheers.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

24js picture 24js  Â·  3Comments

vuhrmeister picture vuhrmeister  Â·  3Comments

chintohere picture chintohere  Â·  3Comments

Varulv1997 picture Varulv1997  Â·  3Comments

cdwmhcc picture cdwmhcc  Â·  3Comments