Skip to content

Fix for Issues/95 - #96

Open
kylehuynh205 wants to merge 4 commits into
Islandora:2.xfrom
digitalutsc:issues/95
Open

Fix for Issues/95#96
kylehuynh205 wants to merge 4 commits into
Islandora:2.xfrom
digitalutsc:issues/95

Conversation

@kylehuynh205

Copy link
Copy Markdown
Contributor

What does this Pull Request do?

Fix for the issue #95

  • Related GitHub Issue: (link)

  • Other Relevant Links: (Google Groups discussion, related pull requests,
    Release pull requests, etc.)

What's new?

Add a check if missing "?" for the based url before update the links in Item per Page and Display mode

Reset the URL after the reset button is clicked to address issue Islandora#95.
@joecorall
joecorall self-requested a review June 17, 2026 17:07

@joecorall joecorall left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this should use URL / URLSearchParams instead of manually checking for ? and concatenating query params. The current fix handles the immediate missing ? case, but it might still produce bad URLs in edge cases and duplicate params.

Also, the reset handler calls both pushState() and location.replace();. Since replace() navigates immediately, what does adding pushState() do? Can we either remove the forced navigation or use URL parsing to clear the query string safely?

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