Skip to content

Retain language preference when cancelling sign up#1634

Merged
hursey013 merged 1 commit intomasterfrom
bh-language-cancel
Aug 23, 2017
Merged

Retain language preference when cancelling sign up#1634
hursey013 merged 1 commit intomasterfrom
bh-language-cancel

Conversation

@hursey013
Copy link
Contributor

Explicitly pass along the locale when referencing root_path in cancel links. This will prevent the language preference from being lost.

Copy link
Contributor

Choose a reason for hiding this comment

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

We have the helper method locale_url_param included in a bunch of places (if not, include LocaleHelper here) It has the advantage of passing nil when we're in en to keep the URLs slightly cleaner?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call, will update.

Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM

@hursey013 hursey013 force-pushed the bh-language-cancel branch 2 times, most recently from 2cdbd33 to 185dfdf Compare August 23, 2017 15:06
@hursey013 hursey013 merged commit aa905de into master Aug 23, 2017
@hursey013 hursey013 deleted the bh-language-cancel branch August 23, 2017 15:22
@tonychang-gov
Copy link

I'm still seeing this in int.

If I get redirected from the SP in French, then click the "Creer un compte", if I then click on the "Annuler" (Cancel) link, I am now in English.

@zachmargolis
Copy link
Contributor

Thanks @tonychang-gov, I was able to repro and will have a PR soon

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.

3 participants