Skip to content

fix: replace hardcoded URL with dynamic environment-based URL#11410

Merged
cdrini merged 1 commit intointernetarchive:masterfrom
395ShikharSingh:fix/remove-hardcoded-url
Nov 10, 2025
Merged

fix: replace hardcoded URL with dynamic environment-based URL#11410
cdrini merged 1 commit intointernetarchive:masterfrom
395ShikharSingh:fix/remove-hardcoded-url

Conversation

@395ShikharSingh
Copy link
Contributor

Closes #

Context:
On the /search/bulk page, clicking the “Add to List” button redirected users to a hardcoded production URL (https://openlibrary.org//account/lists/add?seeds=).
This caused issues during local development, as developers were redirected away from their local environment to the live Open Library site.

Fix:
Replaced the hardcoded URL with a relative path (/account/lists/add?seeds=) so the redirect correctly respects the current environment (e.g., localhost or staging).

Testing:
Verified locally by visiting /search/bulk, performing an extract-match-add flow, and clicking “Add to List” — the redirect now stays within the local instance.

Stakeholders
@cdrini

@395ShikharSingh
Copy link
Contributor Author

@cdrini PTAL — replaced the hardcoded URL in the Bulk Search redirect to use a relative path.

@github-actions github-actions bot added the Needs: Response Issues which require feedback from lead label Nov 4, 2025
Copy link
Collaborator

@cdrini cdrini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, thank you @395ShikharSingh .

@cdrini cdrini merged commit a29b3f0 into internetarchive:master Nov 10, 2025
4 checks passed
@cdrini cdrini added Type: Refactor/Clean-up Issues related to reorganization/clean-up of data or code (e.g. for maintainability). [managed] and removed Needs: Response Issues which require feedback from lead labels Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Refactor/Clean-up Issues related to reorganization/clean-up of data or code (e.g. for maintainability). [managed]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants