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

Merge pull request #747 from noesya/fix/post-open

Correction de la méthode url des posts
parents 4ebb0edb 6a8295ff
No related branches found
No related tags found
No related merge requests found
......@@ -138,7 +138,7 @@ class Communication::Website::Post < ApplicationRecord
return if website.url.blank?
return if website.special_page(Communication::Website::Page::CommunicationPost)&.path.blank?
return if current_permalink_in_website(website).blank?
Static.clean_path "#{website.url}#{current_permalink_in_website(website).path}"
"#{Static.remove_trailing_slash website.url}#{Static.clean_path current_permalink_in_website(website).path}"
end
def to_s
......
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