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

page generated_page

parent c36fa154
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,7 @@ class Communication::Website::Page < ApplicationRecord
scope :recent, -> { order(updated_at: :desc).limit(5) }
def generated_path
"#{parent&.path}/#{slug}/".gsub(/\/+/, '/')
"#{parent&.path}#{slug}/".gsub(/\/+/, '/')
end
def git_path(website)
......
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