Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#55273 closed defect (bug) (duplicate)

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

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

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
5 years ago

  • Milestone Awaiting Review
  • Resolutionduplicate
  • Status newclosed

Hi there, welcome to WordPress Trac!

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

#2 @laurentfrom47
5 years ago

OK, which patch i can use ?

Thanks.

Note: See TracTickets for help on using tickets.