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

Avoid broken links being generated by Record View Helper #2841

Closed
wants to merge 1 commit into from

Conversation

mtrojan-ub
Copy link
Contributor

No description provided.

@demiankatz demiankatz added this to the 9.0 milestone Apr 19, 2023
Copy link
Member

@demiankatz demiankatz left a comment

Choose a reason for hiding this comment

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

Thanks, @mtrojan-ub, this looks reasonable to me, and I've added a unit test to confirm the expected behavior. I'll cherry-pick this back to the release-9.0 branch tomorrow unless @EreMaijala has any concerns in the meantime.

Copy link
Contributor

@EreMaijala EreMaijala left a comment

Choose a reason for hiding this comment

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

Looks good to me.

If we were to start from scratch, I'd avoid prepending anything in getCurrentHiddenFilterParams since its caller should know best what to prepend, and not doing it automatically would make it harder to make these mistakes. But this is good in keeping things back-compatible.

@demiankatz
Copy link
Member

Thanks, everyone -- as planned, I've backported this to release-9.0 so we can take advantage of the fix in Monday's release.

@demiankatz demiankatz closed this Apr 20, 2023
@demiankatz
Copy link
Member

To @EreMaijala's point, we could consider deprecating getCurrentHiddenFilterParams in future in favor of a new method that eliminates the prepending functionality... but that's a conversation for another day. :-)

EreMaijala pushed a commit to EreMaijala/vufind that referenced this pull request Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants