WordPress.org

Make WordPress Core

Opened 8 days ago

Last modified 7 days ago

#48025 reviewing defect (bug)

When the permalink structure ends with a slash, a slash is appended to the URL of robots.txt.

Reported by: Toro_Unit Owned by: SergeyBiryukov
Milestone: 5.3 Priority: normal
Severity: normal Version: trunk
Component: Canonical Keywords: has-unit-tests has-patch
Focuses: Cc:

Description

When the permalink structure ends with a slash,

The URL is http://example.org/robots.txt/

The trailing slash should be removed.

Attachments (2)

48025.patch (854 bytes) - added by Toro_Unit 8 days ago.
48025.2.patch (1.5 KB) - added by Toro_Unit 8 days ago.
added unit test

Download all attachments as: .zip

Change History (4)

@Toro_Unit
8 days ago

@Toro_Unit
8 days ago

added unit test

#1 @Toro_Unit
8 days ago

  • Keywords has-unit-tests has-patch added

#2 @SergeyBiryukov
7 days ago

  • Milestone changed from Awaiting Review to 5.3
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing
Note: See TracTickets for help on using tickets.