-
Notifications
You must be signed in to change notification settings - Fork 10
galleries with the same name. #23
Comments
Hi ingvi, Unfortunately at the moment there is no code to check for duplicate gallery names or slugs. The way around it is to moment is give each gallery a unique name at a given depth in the structure. I will need to think about a fix, but if do have one then please send me a pull request. Thanks, |
Hi Tom, Instead of: Just a suggestion. |
....ok what about when a gallery is created you create it with the slug = name + id? then this duplucation of slugs will never happen. Just wondering where this slug is created is it in models/gallery.rb [def set_slug]? best |
Sorry for the silence, |
that's true regarding pretty urls. What about search engines and bookmarks? If you have a slug called gallery/fancyslide and suddenly your client decides to change it to gallery/awesomeslide. then I guess the bookmark is broken. Seems like many are going with urls in this direction = gallery/#id-#galleryname. And then the id is used to get the correct gallery... just a thought. :) cheers |
Hi ingvi, I believe you found a genuine defect, the gallery should have a unique name for a same parent_id. |
Sorry ingvi, did you manage to come up with a fix? |
I'm currently just creating gallery slugs with id names and I stopped validating the gallery names. |
I guess, I should look at a gallery slug editor functionality for this bug |
For some reason the slug for galleries with identical names are exactly the same. Check it out: http://magg.dottirandsonur.com/ (the gallery called SIMINN share the same name, and also same slug).
Should I do something different?
ingvi
The text was updated successfully, but these errors were encountered: