Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom taxonomies slugs clash with attachment slugs #131

Open
The3IC opened this issue Feb 28, 2017 · 3 comments
Open

Custom taxonomies slugs clash with attachment slugs #131

The3IC opened this issue Feb 28, 2017 · 3 comments

Comments

@The3IC
Copy link

The3IC commented Feb 28, 2017

I discovered a new issue where the slug plugin is kind of unstable. This is also related to a Woocommerce Product categories. The category has been working fine but suddenly it started giving a 404. The only thing I needed to do was to change the slug with one character (I changed "powerboat" -> "power_boat") and then everything was back to normal.

When the error occurs the expected url/slug is shown and the category works in the default language but not the other (default i Finnish and the other is English, English not working). All other categories work fine, it is just this one category that started acting strange.

@LC43
Copy link
Collaborator

LC43 commented Feb 28, 2017

Hi @The3IC , there's a precedence between posts, pages, custom post types and then taxonomies. could it be that the slug 'powerboat' is being used other place? we try to make the slugs unique across same type and check a bunch of other query info, but in some configurations ( without the base /category/ for example, or without the woocommerce prefix ), there will be some slug collisions. Can you confirm?

@The3IC
Copy link
Author

The3IC commented Feb 28, 2017

Hi. Actually it turned out to be an image also this time, now the image name was the same slug (slug: powerboat, image title: powerboat and image filename: powerboat.png. Didn't think of testing just editing the title before I uploaded a new version of the file, now with the filename and title changed, the slug again works.

@LC43
Copy link
Collaborator

LC43 commented Feb 28, 2017

so it was a collision with that attachment. This is bothersome, as there's no warning from qts that this happens. I need to improve these collisions. thanks for reporting!

@LC43 LC43 changed the title Unstable operation with product category Custom taxonomies slugs clash with attachment slugs Feb 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants