Skip to content
Snippets Groups Projects
Unverified Commit f1dd20af authored by Pierre-André Boissinot's avatar Pierre-André Boissinot Committed by GitHub
Browse files

Merge pull request #685 from noesya/fix/post-url

Le bouton ouvrir dans le show d'un post dans le BO fonctionne
parents 401cf703 585d2438
No related branches found
No related tags found
No related merge requests found
...@@ -137,7 +137,7 @@ class Communication::Website::Post < ApplicationRecord ...@@ -137,7 +137,7 @@ class Communication::Website::Post < ApplicationRecord
return unless published return unless published
return if website.url.blank? return if website.url.blank?
return if website.special_page(:communication_posts)&.path.blank? return if website.special_page(:communication_posts)&.path.blank?
"#{website.url}#{website.special_page(:communication_posts).path}#{path}" Static.clean_path "#{website.url}#{current_permalink_in_website(website).path}"
end end
def to_s 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