Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Organization resets to default and project to blank #3715

@ghost

Description

Describe the bug
When browsing Dispatch in a non-default organization (we have two) I experience that the organization is reset to the default project. I also see that the project settings sometimes reset to blank, which I believe is related. When this happens, I go back to the main screen and navigate to the same place I were and it is persistent again for some time.

This issue may be triggered by the configuration of PKCE (Google Workspace) or some other implementation-specific issue on our side.

URL example: https://{{domain}}/{{non-default organization}}/cases are sent to https://{{domain}}/default/cases

To Reproduce

  1. Enable PKCE with Google Workspace
  2. Browse to settings and e.g. Incident Types
  3. Reload and be redirected via PKCE auth
  4. Project is blank even thought the project URL query has a value like e.g. /{{organization}}/settings/projects/incidentTypes?project={{project}}
  5. Manually setting the project loads data on the specific page
  6. Goto other settings page and the project is blank again

Expected behavior
When a project or organization is selected, it should be persistent until changed by the user. If a project is set in the URL query it should be the authoritative source of which project is selected.

It would also be nice with some safeguards if there are issues with the PKCE config, such as for redirects.

Screenshots
How the project field will look when the issue occurs (I've manually blanked it here as an illustration)

Desktop (please complete the following information):

  • Browser: Chrome
  • Version: latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions