Skip to content

Commit 2729f3d

Browse files
authored
Merge pull request #2998 from alphagov/overseas-passports/link-to-passport-service
Divert Start/Continue link for Overseas Passports
2 parents dced0f5 + 55f4fd4 commit 2729f3d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

app/helpers/application_helper.rb

+8
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,12 @@ def start_button
2121
"Start now"
2222
end
2323
end
24+
25+
def start_button_href
26+
if @name.to_s == "overseas-passports"
27+
"https://www.passport.service.gov.uk/filter"
28+
else
29+
smart_answer_path(@name, started: 'y')
30+
end
31+
end
2432
end

app/views/smart_answers/_landing.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<div class="intro">
1919
<%= start_node.body %>
2020
<p class="get-started">
21-
<a rel="nofollow" href="<%= smart_answer_path(@name, started: 'y') %>" class="big button"><%= start_button %></a>
21+
<a rel="nofollow" href="<%= start_button_href %>" class="big button"><%= start_button %></a>
2222
</p>
2323
</div>
2424
<%= start_node.post_body %>

0 commit comments

Comments
 (0)