-
Notifications
You must be signed in to change notification settings - Fork 22
Global URLs
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.
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!)
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.
Check out the Engineering Blog!
- Building your local Environment
- NFS
-
SSHFS— Deprecated - Troubleshooting
- Environment breaking changes
- Troubleshooting your local
- Bender
- Backend Development
- Conventions
- Solr information
- DoSomething Profile
- Contrib Modules
- DoSomething Modules
- Fender
- Front End Development
- Forge Pattern Library
- Testing
- General information
- Xdebug Guide
- Vagrant
- Disc performance benchmark
- Vagrant and file sharing(SSHFS)
- Documentation
- Memorable pull requests
- Documenting on this Wiki & in Code
- 2016 Product Wiki
- Product information
- Faking your geo location
- For local dev: Fastly header information and configuration
- For everywhere else: VPN Server for Testing International Sites
- Translations
- Making content translatable
- Localization Guidelines
- Old International Setup Resources archive
- Setting up international