I want to provide a specific url for one of my pages in a specific language. Is it possible to provide the target language in the URL?
You can link to a page translated with Scroll Translations by adding the "scmLanguageKey=<languageCode>" parameter to the URL. This can be done with Pretty URLs or with the corresponding "viewpage.action" URL. With Pretty URLs the required parameters have to be added manually, whereas for the viewpage URL you only need to retrieve the link.
If you use the follow the steps below: URL as a base,
- Navigate to the page you want to link to
- Click the language picker
- Secondary (right) click the desired target language
- Choose Copy Link/Copy Link Address
Now you are done. Try pasting the URL in your browser and navigate to the translated page.
Here's an example of how the link might look. For this specific URL, German is defined as the target language:
If you use Confluence's Pretty URL as a base, follow these steps:
- Start with following the steps above to retrieve the viewpage URL
- Copy the arameter and its value from the viewpage URL
- In the browser address field, copy the URL of the page you want to link to
- Add a question mark "?" at the end of the URL as a separator followed by the parameter and its language value
Well done! Now, paste the URL in your browser and navigate to the translated page.
Here's an example of how the link might look. For this specific URL, English is defined as the target language:
If you're using the page key functionality in Scroll Versions, you can also link directly to translated pages by appending the URL parameter
lang=<languageCode> behind your page key in the url. For example: