Skip to content

Commit

Permalink
Merge pull request #8508 from alphagov/remove_toggle_for_offsite_link…
Browse files Browse the repository at this point in the history
…s_anchor

Remove release flag for offsite link path redirect anchor
  • Loading branch information
minhngocd authored Nov 23, 2023
2 parents 9ca9af5 + 11a5984 commit d1da745
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/admin/offsite_links_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ def offsite_link_path(offsite_link)

def offsite_links_path
if @parent.is_a? TopicalEvent
polymorphic_path([:admin, @parent, :topical_event_featurings], anchor: preview_design_system?(next_release: false) ? "non_govuk_government_links_tab" : nil)
polymorphic_path([:admin, @parent, :topical_event_featurings], anchor: "non_govuk_government_links_tab")
else
polymorphic_path([:features, :admin, @parent], anchor: preview_design_system?(next_release: false) ? "non_govuk_government_links_tab" : nil)
polymorphic_path([:features, :admin, @parent], anchor: "non_govuk_government_links_tab")
end
end

Expand Down

0 comments on commit d1da745

Please sign in to comment.