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

fixed

parent 6c40770e
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,9 @@ class Communication::Website::Menu::Item < ApplicationRecord
case self.kind
when 'url'
target = url
when 'page', 'news_article'
when 'page'
target = about.path if about&.published
when 'news_article'
target = about.path if about&.published_at
when 'programs'
target = "/#{website.programs_github_directory}" if website.programs.any?
......
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