Skip to content
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

Ensure alert redirect respects base_path #144

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

froboy
Copy link
Contributor

@froboy froboy commented Jun 7, 2024

#136 failed in QA builds (the links on YCloudYUSA/yusaopeny#190) because it constructs a redirect based on getSchemeAndHttpHost but does not account for the Drupal site basePath if it exists.

On the test url, the alerts query is redirected to http://profile.openy.cibox.tools/fr/build4832/alerts?uri=/fr&_format=json. In this case, /fr should be after/build4832.

This is a pretty rare case, but the build URLs (like http://profile.openy.cibox.tools/build4832) are a great test case for this.

This fix accounts for the base on the redirect, if it exists.

@froboy
Copy link
Contributor Author

froboy commented Jun 7, 2024

@andrebonon @podarok

@podarok podarok merged commit c8bb700 into open-y-subprojects:main Jun 10, 2024
1 check passed
@froboy froboy deleted the patch-1 branch December 9, 2024 18:08
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.

2 participants