Skip to content
Snippets Groups Projects
Unverified Commit 2a8a4b49 authored by Sébastien Gaya's avatar Sébastien Gaya Committed by GitHub
Browse files

Merge pull request #643 from noesya/fix/slug-home

Force slug vide sur la home des websites
parents 0ca51462 d3d0deaa
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,12 @@ module Communication::Website::Page::WithPath
protected
def check_slug
self.slug = to_s.parameterize if self.slug.blank? && !kind_home?
if kind_home?
self.slug = ""
return
end
self.slug = to_s.parameterize if self.slug.blank?
current_slug = self.slug
n = 0
while slug_unavailable?(self.slug)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment