Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix links to CB #26523

Merged
merged 1 commit into from Jan 14, 2019
Merged

Fix links to CB #26523

merged 1 commit into from Jan 14, 2019

Conversation

Hamms
Copy link
Contributor

@Hamms Hamms commented Jan 9, 2019

Right now, they're linking to English even in es-MX.

This is because URI += doesn't work as you would expect; each time you use it, it overwrites the value added last, meaning that we were adding the locale string, then overwriting it with the path.

Using File.join to construct the path as a whole is apparently how we're supposed to do this.

https://blog.honeybadger.io/why-is-uri-join-so-counterintuitive/

@Hamms Hamms requested a review from nkiruka January 9, 2019 02:01
@dju90 dju90 self-assigned this Jan 9, 2019
@Hamms Hamms merged commit 9b27810 into staging Jan 14, 2019
@Hamms Hamms deleted the fix-cb-links branch January 14, 2019 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants