Skip to content

Commit

Permalink
[Cycling UK] Open privacy policy links in new window
Browse files Browse the repository at this point in the history
Some browsers put the user back at the category selection stage
of the reporting flow if they use the back button after following
the privacy policy link.
  • Loading branch information
davea committed Jan 29, 2024
1 parent ec25747 commit 7e3f911
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions templates/web/cyclinguk/report/new/councils_text.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[% FILTER collapse %]
[% category = mark_safe(category) %]
[% IF unresponsive.$category OR unresponsive.ALL OR bodies_to_list.size == 0 %]
[% tprintf(
loc('These will be published online for others to see, in accordance with our <a href="%s" target="_blank">privacy policy</a>.'),
c.cobrand.privacy_policy_url)
%]
[% ELSE %]
[% PROCESS 'report/new/councils_text_all.html' %]
[% END %]
[% END -%]
9 changes: 9 additions & 0 deletions templates/web/cyclinguk/report/new/councils_text_private.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[% FILTER collapse %]
[% category = mark_safe(category) %]
[% IF unresponsive.$category OR unresponsive.ALL OR bodies_to_list.size == 0 %]
[% loc('These details will never be shown online without your permission.') %]
[% ELSE %]
[% loc('These details will be sent to the council, but will never be shown online without your permission.') %]
[% END %]
(<a href="[% c.cobrand.privacy_policy_url %]" target="_blank">[% loc('See our privacy policy') %]</a>.)
[% END -%]

0 comments on commit 7e3f911

Please sign in to comment.