diff options
Diffstat (limited to 'app/helpers/events_helper.rb')
-rw-r--r-- | app/helpers/events_helper.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/helpers/events_helper.rb b/app/helpers/events_helper.rb index 207230fd92e..0167f2ef698 100644 --- a/app/helpers/events_helper.rb +++ b/app/helpers/events_helper.rb @@ -199,8 +199,7 @@ module EventsHelper elsif event.design_note? design_url(event.note_target, anchor: dom_id(event.note)) else - polymorphic_url([event.project.namespace.becomes(Namespace), - event.project, event.note_target], + polymorphic_url([event.project, event.note_target], anchor: dom_id(event.target)) end end |