Skip to content
Snippets Groups Projects
Commit 5fc86ef1 authored by pabois's avatar pabois
Browse files

fix page.path_without_language

parent 605c5c87
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,9 @@ class Communication::Website::Page < ApplicationRecord
end
def path_without_language
if parent_id.present?
if kind_home?
"/"
elsif parent_id.present?
"#{parent&.path_without_language}#{slug}/".gsub(/\/+/, '/')
else
"/#{slug}/".gsub(/\/+/, '/')
......
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