Skip to:
Content

Opened 4 years ago

Closed 3 years ago

Last modified 3 years ago

#1207 closed enhancement (wontfix)

Canonical permalink URLs for posts

Reported by: f00f Owned by:
Milestone: 1.1 Priority: normal
Severity: normal Version:
Component: Front-end Keywords: post canonical url has-patch permalink
Cc:

Description

Problem description:
1) Someone links to post nr. 632 in your forums. The link will point to e.g.
/topic/your-topic/page/2#632
2) Now you change the number of posts per page. Chances are good that the link is broken.

Solution:
Add canonical URLs for posts, like this:
/post.php?post_id=632
post.php has access to your bbpress settings and can easily calculate the correct page. Then, it redirects to the correct page.
Of course, these links can get pretty permalinks, too.
E.g.: /post/your-topic/632
Or maybe even (for bw compat.)
/topic/your-topic/page/2#632
This way even the topic slug is maintained in the link URL.

I have attached a post.php file which accomplishes the task.

Attachments (1)

post.php (983 bytes) - added by f00f 4 years ago.

Download all attachments as: .zip

Change History (9)

f00f4 years ago

comment:1 Gautam Gupta4 years ago

  • Milestone changed from 1.0.3 to 1.1

comment:2 kevinjohngallagher4 years ago

  • Milestone changed from 1.1 to 1.5

comment:3 mr_pelle4 years ago

See Zaerl Post Permalink (if link does not work, click here).

comment:4 kevinjohngallagher4 years ago

  • Milestone changed from Future Release to 1.1

comment:5 GautamGupta4 years ago

As there is already a plugin for this, it should wait and we should instead get the bugs fixed.

comment:6 GautamGupta4 years ago

  • Milestone changed from 1.1 to Future Release

comment:7 johnjamesjacoby3 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

Since there's a plugin for this, and since the bbPress plugin for WordPress will inherit this automatically, I'm closing as wontfix.

comment:8 johnjamesjacoby3 years ago

  • Milestone changed from Future Release to 1.1
  • Version 1.0.2 deleted
Note: See TracTickets for help on using tickets.