Global URLs - DoSomethingArchive/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:
- The Teens for Jeans URL before the global site launch was: https://www.dosomething.org/campaigns/teens-jeans.
- The Teens for Jeans URL since the global site launch is: https://www.dosomething.org/us/campaigns/teens-jeans
Now:
- To share a US only campaign link, share the link with /us included: https://www.dosomething.org/us/campaigns/teens-jeans
- To share a translated campaign link, share the unappended link: https://www.dosomething.org/campaigns/sea-turtle-street-sweep, so the person clicking will be brought to the most relevant translation of the site (i.e. https://www.dosomething.org/us/campaigns/sea-turtle-street-sweep for someone in the US vs. https://www.dosomething.org/br/voluntario/limpeza-de-ruas-em-favor-das-tartarugas-marinhas for someone in Brazil).
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.