-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to Disable URL Rewrite #2556
Labels
Comments
brendarearden
added
t/bug
Something isn't working
triaged
p/medium
jira
team/bear-claws
labels
Mar 29, 2024
This ticket has been labeled jira. A tracking ticket in Stoplight's Jira ( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current Situation
In lower/dev environments, hosting Stoplight Elements behind something like a software load balancer/proxy (Traefik/Fabio/Nginx, etc) can sometimes mean that they are accessed via a subfolder-like path.
Example URL:
https://lb.internal.fqdn/fancy-app/docs
In the example above, the load balancers can be configured to strip the
/fancy-app
piece of the request when forwarding the request on to my application.Today I can get this to work by ensuring the
basePath
is aware of the/fancy-app
URI to properly load the OpenAPI spec provided. I can get the UI to load once by havingrouter="history"
. However, the moment the page loads, the URL gets re-written to remove the/fancy-app
component of the URL.Once
https://lb.internal.fqdn/fancy-app/docs
loads, it immediately showshttps://lb.internal.fqdn/docs
. Using any of the other routers simply fails to load the docs entirely.My question
Is there a way to configure Stoplight to not rewrite the URL in this scenario? I assume there is something specific to React (or whichever framework Stoplight uses) where this would be configured, if it is even possible.
References
basePath
.Current Config
The text was updated successfully, but these errors were encountered: