Uporedite revizije

A guide to linking to support articles

Revizija 48071:

Revizija 48071 od Verdi načinjena

Revizija 57969:

Revizija 57969 od Verdi načinjena

Ključne riječi:

Sažetak rezultata pretraživanja:

This article is a developer reference for linking to support articles.
This article is a developer reference for linking to support articles.

Sadržaj:

There are two ways to link to Mozilla Support articles. Which method you use depends on where you are linking from. If it's from the chrome of Firefox or Firefox for Android, you'll want to use the "in-product" method. If you are linking from a web property, then the URL minus the locale string is the way to go. Here's how they work. __TOC__ =Create in-product links to SUMO= Targets for buttons or links within the browser chrome should follow this pattern: <code> https://support.mozilla.<!-- -->org/1/firefox/%VERSION%/%OS%/%LOCALE%/TOPIC </code> Examples: *https://support.mozilla.<!-- -->org/1/firefox/13.0a2/Darwin/en-US/prefs-privacy *https://support.mozilla.<!-- -->org/1/firefox/13.0a2/Darwin/en-US/36eol The last part of the URL, the topic, can be any string. Firefox for Android links should use <code>/1/mobile</code> to distinguish the product. The tuple (product, version, os, locale, topic) determines where the user actually goes. This allows the SUMO team to change the target of the Help button without breaking links/buttons in Firefox. We have specific targets for all the topic values, and sometimes we can split apart users from OS X or Windows to the most relevant articles, or those with old/specific versions of Firefox, etc. =Link to SUMO from a web property= If this content is being served via the web and is ''not'' shipped with the browser, you don't need to (and shouldn't) use the in-product links. All you have to do is use the URL without the locale string. SUMO will automatically send the user to the version of the article in their language. So, for example, in order to link to the [[Update Firefox to the latest version ]] article:<br> Use *https://support.mozilla<!-- -->.org/kb/update-firefox-latest-version Don't use *https://support.mozilla<!-- -->.org/en-US/kb/update-firefox-latest-version =Questions?= If you have questions or need to set up the final target of the in-product link, contact Michael Verdi - mverdi at mozilla<!-- -->.com or verdi on IRC. [[T:ShareArticle|link=http://mzl.la/1ahx8VZ]]
There are two ways to link to Mozilla Support articles. Which method you use depends on where you are linking from. If it's from the chrome of Firefox or Firefox for Android, you'll want to use the "in-product" method. If you are linking from a web property, then the URL minus the locale string is the way to go. Here's how they work. __TOC__ =Create in-product links to SUMO= Targets for buttons or links within the browser chrome should follow this pattern: <code> https://support.mozilla.<!-- -->org/1/firefox/%VERSION%/%OS%/%LOCALE%/TOPIC </code> Examples: *https://support.mozilla.<!-- -->org/1/firefox/13.0a2/Darwin/en-US/prefs-privacy *https://support.mozilla.<!-- -->org/1/firefox/13.0a2/Darwin/en-US/36eol The last part of the URL, the topic, can be any string. Firefox for Android links should use <code>/1/mobile</code> to distinguish the product. The tuple (product, version, os, locale, topic) determines where the user actually goes. This allows the SUMO team to change the target of the Help button without breaking links/buttons in Firefox. We have specific targets for all the topic values, and sometimes we can split apart users from OS X or Windows to the most relevant articles, or those with old/specific versions of Firefox, etc. =Link to SUMO from a web property= If this content is being served via the web and is ''not'' shipped with the browser, you don't need to (and shouldn't) use the in-product links. All you have to do is use the URL without the locale string. SUMO will automatically send the user to the version of the article in their language. So, for example, in order to link to the [[Update Firefox to the latest version ]] article:<br> Use *https://support.mozilla<!-- -->.org/kb/update-firefox-latest-version Don't use *https://support.mozilla<!-- -->.org/en-US/kb/update-firefox-latest-version =Linking from somewhere else= If you're not linking from Firefox or a website (maybe an app, product, email, etc.), you probably want to use the URL (without the locale string) and identify the source. Example: *https://support.mozilla<!-- -->.org/kb/update-firefox-latest-version?utm_source=nameofsource =Questions?= If you have questions or need to set up the final target of the in-product link, contact Michael Verdi - mverdi at mozilla<!-- -->.com or verdi on IRC. [[T:ShareArticle|link=http://mzl.la/1ahx8VZ]]

Nazad na historiju