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

Merge pull request #689 from noesya/fix/open-btn

Handle blank permalink in post.url
parents 0da5ad63 a5940a60
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