Skip to:

Opened 4 years ago

Closed 4 years ago

#3051 closed defect (fixed)

Trashing topics theme-side redirects to 404 page

Reported by: johnjamesjacoby Owned by: johnjamesjacoby
Milestone: 2.6 Priority: normal
Severity: normal Version:
Component: Component - Topics Keywords: has-patch


When trashing a topic theme-side, the resulting redirect page is a 404.

Related to:

This is because bbPress prefetches the redirect_to and does not reprocess it after the topic's slug is changed during the trashing process.

Note that forums & replies do not exhibit the same bug (even though they share similar functionalities) because forums cannot be toggled like topics can, and because replies redirect to the paginated topic URL (and not single reply pages.)

Patch imminent.

Attachments (1)

3051.patch (2.2 KB) - added by johnjamesjacoby 4 years ago.

Download all attachments as: .zip

Change History (2)

#1 @johnjamesjacoby
4 years ago

  • Owner set to johnjamesjacoby
  • Resolution set to fixed
  • Status changed from new to closed

In 6269:

Topics: get a fresh value for redirect_to when trashing/untrashing/deleting.

Fixes a bug where trashing a topic theme-side would redirect to the prefetched topic URL and 404.

(In the case of trashed topics, since WordPress 4.7, the slug receives a __trashed suffix, changing the topic link.)

Fixes #3051.

Note: See TracTickets for help on using tickets.