Skip to content

Permalinks do not work correctly when invoked from outside the app whenever General -> First Channel After Login is set #13704

@cromulentbanana

Description

@cromulentbanana

Description:

If I (as an administrator) have set General -> First Channel After Login to a specific channel "A", then any permalink which I create and then follow from outside the application (i.e. pasting the link into the browser's address bar) will cause the application to immediately navigate away from that permalinked messages toward the most recent message of channel "A".

Note that clicking on a permalink within the application will however correctly navigate to the corresponding message.

Steps to reproduce:

  1. Ensure that the setting General -> First Channel After Login is set to an existing channel.
  2. Create a peramalink for any arbitrary message.
  3. Paste the URL of that permalink directly into the browser's address bar.

Expected behavior:

The browser should load the relevant message which the permalink references.

Actual behavior:

The browser modifies the URL in the address bar, changing it to the channel specified by General -> First Channel After Login

Server Setup Information:

  • Version of Rocket.Chat Server: 0.74.2 5fb5e57
  • Operating System: Linux
  • Deployment Method: snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Enabled
  • NodeJS Version: v8.11.3
  • MongoDB Version:

Additional context

Relevant logs:

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