Skip to content

Fixed invalid redirect for /atlas without trailing slash#2700

Merged
leeevans merged 1 commit intoOHDSI:masterfrom
chgl:fix-invalid-redirect-in-nginx-container
Jul 14, 2022
Merged

Fixed invalid redirect for /atlas without trailing slash#2700
leeevans merged 1 commit intoOHDSI:masterfrom
chgl:fix-invalid-redirect-in-nginx-container

Conversation

@chgl
Copy link
Contributor

@chgl chgl commented May 5, 2022

Closes #2641

When accessing the Atlas UI on a URL not ending in a trailing slash, NGINX would always automatically redirect you to host:8080/atlas/.

This change modifies the default NGINX configuration to use the host header for redirection.

@chgl
Copy link
Contributor Author

chgl commented May 5, 2022

I didn't want to overload this PR by adding too much, but I would be happy to add a basic E2E test (using eg https://playwright.dev/) to at least make sure that the UI loads correctly.

@chgl chgl force-pushed the fix-invalid-redirect-in-nginx-container branch from 97ed221 to 6a27b93 Compare July 9, 2022 18:01
@leeevans leeevans merged commit d0370e1 into OHDSI:master Jul 14, 2022
@leeevans
Copy link

@chgl - please create a separate PR if you would like to add a basic E2E test. Thanks!

@chgl chgl deleted the fix-invalid-redirect-in-nginx-container branch July 14, 2022 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid redirect when accessing ATLAS on a URL not ending in a trailing slash

2 participants