Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#55273 closed defect (bug) (duplicate)

Term permalink accessible with or without taxonomy in URL when /%category%/%postname% in settings

Reported by: laurentfrom47's profile laurentfrom47 Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.9.1
Component: Permalinks Keywords:
Focuses: Cc:

Description

I'm using "/%category%/%postname%" as custom permalink for posts.

With this setting term URL is accessible with or without taxonomy in URL, for example :

https://www.website.com/category/cars >> OK

https://www.website.com/cars >> OK also and that is the problem it should be a 404

Thanks.

Change History (2)

#1 @SergeyBiryukov
3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi there, welcome to WordPress Trac!

Thanks for the report, we're already tracking this issue in #18734.

#2 @laurentfrom47
3 years ago

OK, which patch i can use ?

Thanks.

Note: See TracTickets for help on using tickets.