WordPress.org

Making WordPress.org

Opened 6 months ago

Closed 5 months ago

Last modified 5 months ago

#4142 closed defect (fixed)

Add rel=next / prev on support archives

Reported by: joostdevalk Owned by: SergeyBiryukov
Milestone: Priority: normal
Component: Support Forums Keywords: seo
Cc:

Change History (10)

#1 @joostdevalk
6 months ago

  • Description modified (diff)

#2 @joostdevalk
6 months ago

  • Description modified (diff)

#3 @SergeyBiryukov
6 months ago

  • Component changed from General to Support Forums

#4 @SergeyBiryukov
6 months ago

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

#5 follow-up: @dd32
5 months 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
5 months 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
5 months ago

Related ticket for core: #WP18672

#8 @SergeyBiryukov
5 months 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
5 months 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
5 months 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.

Note: See TracTickets for help on using tickets.