Commit 25bf63c8 authored by Alex Kalderimis's avatar Alex Kalderimis

Ensure we always generate a valid URL

Defaults to the homepage, if for some reason the canonical URL is nil
parent af7eff8f
......@@ -188,7 +188,7 @@ module EventsHelper
end
def event_wiki_page_target_url(event)
project_wiki_url(event.project, event.target.canonical_slug)
project_wiki_url(event.project, event.target&.canonical_slug || Wiki::HOMEPAGE)
end
def event_note_title_html(event)
......
---
title: Ensure we always generate a valid wiki event URL
merge_request: 34191
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment