Making WordPress.org

Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#4142 closed defect (bug) (fixed)

Add rel=next / prev on support archives

Reported by: joostdevalk's profile joostdevalk Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: Priority: normal
Component: Support Forums Keywords: seo
Cc:

Change History (11)

#1 @joostdevalk
6 years ago

  • Description modified (diff)

#2 @joostdevalk
6 years ago

  • Description modified (diff)

#3 @SergeyBiryukov
6 years ago

  • Component changed from General to Support Forums

#4 @SergeyBiryukov
6 years ago

  • Owner set to SergeyBiryukov
  • Status changed from new to accepted

#5 follow-up: @dd32
6 years ago

It's going to be a bit hard to add <link> rel=prev/next on some of the Support Forum pages, as the WP_Query of topics isn't available until well into the <body> render AFAICT

#6 in reply to: ↑ 5 @SergeyBiryukov
6 years ago

Replying to dd32:

the WP_Query of topics isn't available until well into the <body> render AFAICT

Yeah, that's where it got complicated :)

The maximum number of pages is available on page load for topic tags, but not for views.

#7 @SergeyBiryukov
6 years ago

Related ticket for core: #WP18672

#8 @SergeyBiryukov
6 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 8263:

Support Forums: Output rel="next", rel="prev" meta tags for paginated archives.

Fixes #4142.

#9 @SergeyBiryukov
6 years ago

Didn't touch pages like https://wordpress.org/support/users/sergeybiryukov/replied-to/page/2/ for now, as their canonical URL corrently points to the main WP.org profile, see #4170.

If there's a consensus that subpages like Topics Started, Replies Created, Reviews Written, etc. should have their own canonical tag, we can revisit the next/prev links for them as well.

#10 @SergeyBiryukov
6 years ago

In 8274:

Support Forums: After [8263], make sure the Reviews view is not treated as a topic tag, and still has the .bbp-view class.

H/t Cybr, Otto42.
See #4142.

This ticket was mentioned in Slack in #meta-wordcamp by ryelle. View the logs.


5 years ago

Note: See TracTickets for help on using tickets.