Skip to content

Keep locale when cancelling SP-initiated signup#1662

Merged
zachmargolis merged 1 commit intomasterfrom
margolis-cancel-persist-language
Sep 8, 2017
Merged

Keep locale when cancelling SP-initiated signup#1662
zachmargolis merged 1 commit intomasterfrom
margolis-cancel-persist-language

Conversation

@zachmargolis
Copy link
Contributor

Why: For consistency


Follow-up to #1634 (comment)
cc @tonychang-gov


def cancel_link_path
sign_up_start_path(request_id: sp_session[:request_id])
sign_up_start_path(request_id: sp_session[:request_id], locale: locale_url_param)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we be doing this everywhere we're using path helpers, or is this a special case?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may want to do this everywhere we're using path helpers? This is overridden with a default in the controller context... (see ApplicationController#default_url_options) so that means everything not inside a template or a controller we could be missing

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, def something to look out moving forward

@zachmargolis zachmargolis merged commit dd3d845 into master Sep 8, 2017
@zachmargolis zachmargolis deleted the margolis-cancel-persist-language branch September 8, 2017 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants