Skip to content
Snippets Groups Projects
Unverified Commit a5940a60 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

handle blank permalink in post.url

parent 0da5ad63
No related branches found
No related tags found
No related merge requests found
......@@ -137,6 +137,7 @@ class Communication::Website::Post < ApplicationRecord
return unless published
return if website.url.blank?
return if website.special_page(:communication_posts)&.path.blank?
return if current_permalink_in_website(website).blank?
Static.clean_path "#{website.url}#{current_permalink_in_website(website).path}"
end
......
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