Allow URL routes other than root
Every bug report should have precise description and reproduction steps; console traces or source code references are appreciated.
For assistance requests, contact Azure support or submit a post on Stack Overflow. We don't provide support through GitHub Issues. Feature requests can be raised on the Azure Feedback Forum.
Bug description
We've configured the backendUrl for the dev portal, after the deployment of the static website in storage account, we've noticed that the home url couldn't load the css files, and it's being constantly redirected to the base url of the portal instead of the backendUrl that we configured.
Reproduction steps
- Go to 'https://{{ baseUrl }}/portal-apim'
- Open browser console
- See error "404 Resource Not Found" https://{{ baseUrl }}/styles/theme.css
Expected behavior
The beautiful portal site should be loaded with all wwwroot assets.
Is your portal managed or self-hosted?
Self-hosted
Release tag or commit SHA (if using self-hosted version)
[e.g., release tag 2.8.0]

@chenlonghu, thank you for opening this issue. We will triage it within the next few business days.
Hi @chenlonghu, as I understand, the {{baseUrl}} here is not just hostname, it's more like https://contoso.com/some-folder? If yes, this is typical browser behavior.
I've seen this issue a few times before, so I'll be adding baseUrl setting at some point. Meanwhile, I guess you can try to play with <base> tag or just include some string-replace into your pipelines.
@chenlonghu, as a workaround, you can also use a subdomain with the root path.
@chenlonghu, thank you for requesting this feature.
Hello @mikebudzynski , thanks for your suggestion, unfortunately we cannot use subdomain for the configuration due to SSL certificate purchase policy in the current project. Hello @azaslonov , indeed, we wanted to configure the backendUrl of the APIM dev portal as "https://{{ baseUrl }}/portal-apim", so that we could use the path based rule in the app gateway to navigate to the APIM dev portal without using the subdomain. It would be nice to have this feature in the project so that we could use alternative routes other than the root url.
Hello, Any news about this request ?
By adding this issue to the Backlog project, we have prioritized it for development. You can monitor its status in the project's board.
@cedrox, we prioritized the issue for development, but we don't have an ETA at this moment.
Hi @chenlonghu, as I understand, the {{baseUrl}} here is not just hostname, it's more like
https://contoso.com/some-folder? If yes, this is typical browser behavior.I've seen this issue a few times before, so I'll be adding
baseUrlsetting at some point. Meanwhile, I guess you can try to play with<base>tag or just include some string-replace into your pipelines.
Hi @chenlonghu how to implement the