Open Bug 1693183 Opened 4 years ago Updated 4 years ago

Consider using Services.urlFormatter.formatURLPref to create SUMO links for Interventions

Categories

(Firefox :: Address Bar, task, P3)

task

Tracking

()

People

(Reporter: bugzilla, Unassigned)

References

Details

(Whiteboard: [proton-modals])

Currently, the support link we show in Urlbar Interventions is hardcoded to be https://support.mozilla.org/kb/ followed by the path to the relevant support article. Gijs points out in bug 1606917 comment 9 that we might want to use Services.urlFormatter.formatURLPref("app.support.baseURL") instead, to get locale/version-appropriate URLs.

Joni, does SUMO already create redirects for these Interventions help links? What's the best approach here?

For testing purposes, an Intervention can be summoned by typing firefox update in the address bar.

Flags: needinfo?(jsavage)

We can create stable links as needed that you can hardcode into the UI and they'll redirect to the appropriate support article. Here's the stable link for this specific article:

https://support.mozilla.org/1/firefox/%VERSION%/%OS%/%LOCALE%/refresh-info-search

Let me know if this works.

Flags: needinfo?(jsavage)
Whiteboard: [proton-modals]
Priority: P2 → P3
You need to log in before you can comment on or make changes to this bug.