Skip to content

Use canonical URL in author search to avoid redirects#11612

Merged
mekarpeles merged 1 commit intomasterfrom
fix/author-search-redirects
Dec 22, 2025
Merged

Use canonical URL in author search to avoid redirects#11612
mekarpeles merged 1 commit intomasterfrom
fix/author-search-redirects

Conversation

@cdrini
Copy link
Collaborator

@cdrini cdrini commented Dec 20, 2025

Small perf fix. Was also hoping it might help with #11611 , in case the referer is dropped during a 301, but that appears to not be the case.

Technical

Testing

Screenshot

Stakeholders

@cdrini cdrini marked this pull request as ready for review December 20, 2025 05:06
Copilot AI review requested due to automatic review settings December 20, 2025 05:06
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves performance for author search results by using slugged URLs directly in links, avoiding unnecessary redirects from the short form (/authors/OL123A) to the canonical form (/authors/OL123A/Author_Name).

Key changes:

  • Constructs slugged author URLs using urlsafe() function in the template
  • Fixes inconsistent indentation (tabs to spaces) in the author search results section

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cdrini cdrini changed the title Use slugged URL in author search to avoid redirects Use canonical URL in author search to avoid redirects Dec 20, 2025
@cdrini cdrini added the Patch Deployed This PR has been deployed to production independently, outside of the regular deploy cycle. label Dec 20, 2025
@mekarpeles mekarpeles merged commit 0c897d0 into master Dec 22, 2025
14 checks passed
@mekarpeles mekarpeles deleted the fix/author-search-redirects branch December 22, 2025 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Patch Deployed This PR has been deployed to production independently, outside of the regular deploy cycle.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants