-
Notifications
You must be signed in to change notification settings - Fork 92
Setting baseHref in MULTI_CHANNEL configuration so that it contains multiple slashes fails #1803
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
PWA 6.0.0
ICM 7.10.41.9-LTS B2X
Actual Behavior
When setting baseHref property in MULTI_CHANNEL environment variable to contain multiple slashes (e.g. /za/en), PWA stops working and gives 404 errors with url "baseHref"/home.
Expected Behavior
When setting baseHref property in MULTI_CHANNEL environment variable to contain multiple slashes (e.g. /za/en), PWA works as expected and correct channel homepage is displayed with url "baseHref"/home.
Steps to Reproduce the Bug
Steps to reproduce the behavior:
- Set MULTI_CHANNEL environment variable to:
MULTI_CHANNEL: |
.+:
- baseHref: /za/en
lang: en_ZA
channel: HSA-Site
- baseHref: /pt/pt
lang: pt_PT
channel: HPT-Site
- Build nginx docker image and start it
- Start PWA app
- Try to open home page with http://localhost:4199/za/en/home
- Error is shown and in console multiple js files are tried to be fetched from /za/xxxxx.js (/za/1936.js) and it should be /xxxxx.js
Additional Context, like Screenshots, Log File Snippets etc.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
