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:
- Create a journal with code
test and domain journal.com
- Configuration URL_CONFIG is set to
domain
- Visit the journal on its path mode URL:
http://press.com/test
- 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.
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.compress.comJaneway version
v1.4.1-RC-1
To Reproduce
Steps to reproduce the behavior:
testand domainjournal.comdomainhttp://press.com/testhttp://journal.com/testExpected 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.