Page MenuHomePhabricator

When users visit a Phame post URI with an old blog ID, canonicalize the URI instead of 404'ing
ClosedPublic

Authored by epriestley on Jul 31 2019, 6:40 PM.
Tags
None
Referenced Files
F14075709: D20688.id49341.diff
Thu, Nov 21, 12:59 PM
Unknown Object (File)
Mon, Nov 18, 8:40 PM
Unknown Object (File)
Sat, Oct 26, 4:33 PM
Unknown Object (File)
Wed, Oct 23, 6:19 PM
Unknown Object (File)
Wed, Oct 23, 2:47 PM
Unknown Object (File)
Oct 22 2024, 9:50 AM
Unknown Object (File)
Sep 14 2024, 7:44 AM
Unknown Object (File)
Sep 6 2024, 6:36 AM
Subscribers
None
Tokens
"Orange Medal" token, awarded by Krinkle.

Details

Summary

Fixes T13353. If you:

  • Visit a blog post and save the URI.
  • Move the blog post to a different blog.
  • Revisit the old URI.

...we currently 404. We know what you're trying to do and should just redirect you to the new URI instead. We already do this if you visit a URI with a noncanonical slug.

Test Plan
  • Created post A.
  • Copied the live URI.
  • Moved it to a different blog.
  • Visited the saved URI from the earlier step.
  • Before: 404.
  • After: Redirect to the canonical URI.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable