Skip to content

URLs in emails sometimes include the journal code for domain mode sites #2769

Description

@mauromsl

Describe the bug
When browsing a domain journal in path mode, some rendered URLs will still include the journal code in the URL, leading to a 404.

For example:

  • Journal has a domain of journal.com
  • Press has a domain of press.com

Janeway version
v1.4.1-RC-1

To Reproduce
Steps to reproduce the behavior:

  1. Create a journal with code test and domain journal.com
  2. Configuration URL_CONFIG is set to domain
  3. Visit the journal on its path mode URL: http://press.com/test
  4. Emails sent from the system will have the following structure: http://journal.com/test

Expected behavior
URLs sent with domain mode while browsing in path mode should be well formed and not include the unnecessary journal code in the path.

Metadata

Metadata

Assignees

Labels

bugSomething's not working

Type

No type

Fields

No fields configured for issues without a type.

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions