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

Search URL bug fix #107

Merged
merged 2 commits into from
Nov 8, 2024
Merged

Search URL bug fix #107

merged 2 commits into from
Nov 8, 2024

Conversation

gclssvglx
Copy link
Collaborator

Search URL bug fix

We need to keep the BASE_URL as it is only the Search API URL that changes between v1 and v2. I had forgotten that we also use this when generating the full URL from the path in the content item that is returned in the search results. So, when I updated the test - it still passed, but should not have. Lesson - listen to your tests.

This change fixes that issue by introducing an API_BASE_URL and updating the API call. The test is reverted to a hard-coded string as this is a good check that the user will go to the correct URL.

@gclssvglx gclssvglx requested a review from a team as a code owner November 8, 2024 11:27
Copy link

sonarcloud bot commented Nov 8, 2024

@gclssvglx gclssvglx merged commit 71656b5 into develop Nov 8, 2024
2 checks passed
@gclssvglx gclssvglx deleted the search-url-bug-fix branch November 8, 2024 13:01
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