[wp-meta] [Making WordPress.org] #1880: Add redirect for old numeric topic/forum slugs (was: Add redirect for old numeric topic slugs)
Making WordPress.org
noreply at wordpress.org
Sun Jul 31 15:37:28 UTC 2016
#1880: Add redirect for old numeric topic/forum slugs
----------------------------------+------------------
Reporter: ocean90 | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: International Forums | Resolution:
Keywords: |
----------------------------------+------------------
Old description:
> It seems like bbPress 1.x had a fallback to the topic ID, see
> https://www.google.com/search?q=site%3Ahttps%3A%2F%2Fja.forums.wordpress.org%2Ftopic%2F
>
> A possible solution:
>
> * Store the old topic ID in a meta field `_old_topic_id`
> * In the redirect handler check if the slug of a topic is numeric
> * Query post meta for `_old_topic_id`
> * If meta exists redirect to new slug (cache result)
> * If it doesn't exist continue with the regular redirect (cache result)
New description:
It seems like bbPress 1.x had a fallback to the topic ID, see
https://www.google.com/search?q=site%3Ahttps%3A%2F%2Fja.forums.wordpress.org%2Ftopic%2F
and
https://www.google.com/search?q=site%3Ahttps%3A%2F%2Fja.forums.wordpress.org%2Fforum%2F
A possible solution:
* Store the old topic ID in a meta field `_old_topic_id`
* In the redirect handler check if the slug of a topic is numeric
* Query post meta for `_old_topic_id`
* If meta exists redirect to new slug (cache result)
* If it doesn't exist continue with the regular redirect (cache result)
--
Comment (by ocean90):
We need the same for topics. (`_bbp_old_forum_id` exists too.)
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/1880#comment:2>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list