Make WordPress Core

Opened 2 years ago

Last modified 12 months ago

#55401 new defect (bug)

Subpages of a web page can be called twice

Reported by: manuel10503's profile manuel10503 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: major Version: 5.9.3
Component: Permalinks Keywords: needs-patch dev-feedback needs-refresh needs-dev-note
Focuses: Cc:

Description

Subpages of any website created with WordPress can be accessed twice.

If you add a /0/ to the end of the regular URL, the same page can be called again.
This page with /0/ at the end of the URL will also be indexed in Google.

Example:
https://wordpress.org/news/2022/03/wordpress-5-9-2-security-maintenance-release/

https://wordpress.org/news/2022/03/wordpress-5-9-2-security-maintenance-release/0/

Change History (9)

#1 follow-up: @SergeyBiryukov
2 years ago

  • Keywords 2nd-opinion removed

Hi there, welcome to WordPress Trac! Thanks for the report.

Good catch, a similar issue was fixed in [47727] / #40773 for URLs ending with /2/ or /3/ (unless they are intended to be paged). The redirect for /1/ also works as expected, but apparently not for /0/.

#2 in reply to: ↑ 1 @manuel10503
2 years ago

Replying to SergeyBiryukov:

Good catch, a similar issue was fixed in [47727] / #40773 for URLs ending with /2/ or /3/ (unless they are intended to be paged). The redirect for /1/ also works as expected, but apparently not for /0/.

Thanks for the quick reply. When can I expect approximately a bugfix for this problem?

#3 @ugyensupport
2 years ago

Yes, I can reproduce above mentioned bug.

#4 @manuel10503
2 years ago

  • Version changed from 5.9.2 to 5.9.3

Are there any news on this topic?

#5 @manuel10503
2 years ago

  • Keywords dev-feedback needs-refresh added

May i ask if there are any updates to this problem?

#6 @manuel10503
20 months ago

  • Keywords needs-dev-note added

#7 @manuel10503
12 months ago

Maybe you guys can take a look at it?
@richtabor & @annezazu

Just saw your product presentation of wordpress 6.3 and thought it was really great!

Thank you guys ;)

#8 @manuel10503
12 months ago

There is a similar problem with special characters. If a special character is appended to the URL of a subpage, this subpage can also be called up with these special characters (+, -,...). These generated pages do not have a canonical metatag and therefore have little impact for SEO, but they should still be cleaned up.

Example
Original page: https://wptavern.com/wordcamp-us-2023-contributor-day-signup-is-open

Page with special characters in the URL: https://wptavern.com/wordcamp-us-2023-contributor-day-signup-is-open-

#9 @annezazu
12 months ago

Hey there! Thanks for the kind words and for tagging us in this. We're at RC1 for 6.3, meaning we can only fix bugs related to the release features specifically. As a result, the earliest this could be addressed in 6.4. I'd recommend adding it as a wishlist feature here for possible consideration by the broader release squad: https://make.wordpress.org/core/2023/07/18/wordpress-6-4-whats-on-your-wishlist/

Note: See TracTickets for help on using tickets.