Global URLs - DoSomething/legacy-website GitHub Wiki

The new version of our website is more powerful, but also more complicated. Sharing URLs is just one example of where we need to be more careful than we were before.

Sharing Campaign Links

Depending on where you are, site URLs are now appended by /us (in the US), /mx (in Mexico), /br (in Brazil), or / (anywhere but the US, Mexico, or Brazil). This two letter appendix shows a user the correct translation of the page.

For example:

Now:

To find out if a campaign is translated, please refer to this list.

This is especially important for links distributed externally, but a good best practice for sharing a link with anyone. Another best practice: copy and paste the link you are going to share in an incognito window to test that it works as you expect it to. (However, do not then copy and paste the link populating the URL bar for sharing if the campaign is on the list of translated campaigns -- it will have redirected you based on your location in the world!)

Homepage URLs

Should I share dosomething.org, dosomething.org/us, dosomething.org/mx, or dosomething.org/br?

Always share "dosomething.org" -- the redirect logic on the homepage will correctly direct a user. :)

If a campaign has a vanity URL (like dosomething.org/stress) and is a US-only campaign, do I share dosomething.org/us/stress?

Nope! If a campaign has a vanity URL, you can simply share dosomething.org/stress, regardless of translated status. The vanity URL will direct a user appropriately.