Skip to:
Content

Opened 21 months ago

Closed 6 months ago

#4367 closed defect (bug) (fixed)

Changing WordPress permalinks breaks old BuddyPress activity updates links

Reported by: dvd3141 Owned by: r-a-y
Milestone: 1.9 Priority: normal
Severity: normal Version: 1.0
Component: Rewrite Rules Keywords:
Cc:

Description

If I change the permalinks setting in WordPress Settings / Permalinks, then all previous BuddyPress activity updates become broken. For example, "Joe Bloggs wrote a new post 'New Post'" — the link to New Post still uses the old permalinks structure, and results in a 404 error.

Attachments (1)

4367.01.patch (881 bytes) - added by r-a-y 13 months ago.

Download all attachments as: .zip

Change History (10)

comment:1 DJPaul21 months ago

  • Component changed from Core to Activity
  • Milestone changed from Awaiting Review to Future Release
  • Severity changed from major to normal
  • Version changed from 1.5.6 to 1.0

We could think about making Blog + Page permalinks take the ?p=… URL format as those are redirected to the "real" URL.

comment:2 r-a-y21 months ago

We could think about making Blog + Page permalinks take the ?p=… URL format as those are redirected to the "real" URL.

I love this idea! :)

r-a-y13 months ago

comment:3 r-a-y13 months ago

  • Component changed from Activity to Blogs
  • Keywords has-patch early added
  • Milestone changed from Future Release to 1.8

Attached a patch; will commit this in 1.8.

comment:4 boonebgorges12 months ago

  • Keywords commit added

comment:6 boonebgorges11 months ago

  • Component changed from Blogs to Rewrite Rules
  • Keywords has-patch early commit removed
  • Milestone changed from 1.8 to 1.9

comment:7 inetbizo8 months ago

I deleted all sample posts and the activity STILL shows the posts in user activity stream!

comment:8 r-a-y6 months ago

inetbizo: Please create a new ticket for your issue as your problem does not appear to be related to this ticket.

comment:9 r-a-y6 months ago

  • Owner set to r-a-y
  • Resolution set to fixed
  • Status changed from new to closed

In 7447:

Blogs: Modify recorded post permalink to use shortlink.

Previously, when BuddyPress recorded the post permalink in the
activity stream, it would use the current permalink structure of the blog.

The problem with this is if the blog changed its permalink structure,
the post permalink in the activity post would not resolve properly
because of the change.

This commit alters the recorded post permalink to use the shortlink
(domain/?p=POST_ID). Because WP's rewrite rules will pick up the
'p' query parameter and redirect to the proper post permalink, this
will ensure that the post permalink for future activity blog posts
will work as intended.

Fixes #4367.

Note: See TracTickets for help on using tickets.