Skip to content

Commit

Permalink
Pass whole request object to publishing components
Browse files Browse the repository at this point in the history
In version 9.18.0, the constructor for Contextual Navigation was changed and now expects the whole
request object to be passed. This is because Contextual Navigation also needs to check the values in
The query string (if it exists) to see if the user is on a step by step journey. If they are, the content id of
the step by step is being appended to the querystring.
  • Loading branch information
leenagupte committed Sep 7, 2018
1 parent 5a6a251 commit b746575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<% if @content_item.try(:back_link) %>
<%= render 'govuk_publishing_components/components/back_link', href: @content_item.back_link %>
<% elsif show_new_navigation? %>
<% navigation = GovukPublishingComponents::Presenters::ContextualNavigation.new(@content_item.content_item.parsed_content, request.path) %>
<% navigation = GovukPublishingComponents::Presenters::ContextualNavigation.new(@content_item.content_item.parsed_content, request) %>

<% if @tagged_taxons.present? || navigation.breadcrumbs.present? %>
<div class='gem-c-contextual-breadcrumbs'>
Expand Down

0 comments on commit b746575

Please sign in to comment.