use target="_blank" to open links in the browser
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Ubuntu HTML5 UI SDK |
Medium
|
Alexandre Abreu | ||
| | Ubuntu Help App |
High
|
Daniel Holbach | ||
Bug Description
From an HTML5 app, there should be a way to open links in the default browser application. Similar to what the QML app counterparts do.
Related branches
- Nicholas Skaggs: Approve on 2015-05-13
- Ubuntu Phone Apps Jenkins Bot: Approve (continuous-integration) on 2015-05-13
-
Diff: 371 lines (+195/-59)8 files modifiedHACKING (+1/-1)
debian/control (+2/-0)
internals/local/external-links.py (+26/-0)
internals/pelicanconf.py (+1/-1)
internals/tests/test_links.py (+150/-48)
internals/translations/build.py (+1/-1)
internals/translations/utils.py (+14/-1)
static/themes/app/static/css/app.css (+0/-7)
| Changed in ubuntu-html5-theme: | |
| importance: | Undecided → Medium |
| status: | New → Triaged |
| assignee: | nobody → Alexandre Abreu (abreu-alexandre) |
| Changed in help-app: | |
| importance: | Undecided → High |
| status: | New → Triaged |
| Alexandre Abreu (abreu-alexandre) wrote : | #2 |
Could you provide more information on where it fails? It has been fixed for some time now in RTM and Vivid. I tested and managed to make it work on krillin/
All you have to do is mark the header w/ a target="_blank" as you would w/ any link is that to be treated w/ a "open in an external view" hint,
| David Planella (dpm) wrote : | #3 |
So I can confirm that adding target="_blank" (which is the part I didn't know about) then opens a new browser on the phone, on RTM, so feel free to mark as resolved.
Note that on utopic (desktop) that does not work, but I'm not sure if that's much of an issue.
| Changed in ubuntu-html5-theme: | |
| status: | Triaged → Fix Released |
| summary: |
- [html5 container] should provide a way to open links in the browser + use target="_blank" to open links in the browser |
| Changed in help-app: | |
| status: | Triaged → In Progress |
| assignee: | nobody → Daniel Holbach (dholbach) |
| Changed in help-app: | |
| milestone: | none → 0.3 |
Fix committed into lp:help-app at revision 135, scheduled for release in help-app, milestone backlog
| Changed in help-app: | |
| status: | In Progress → Fix Committed |
| Changed in help-app: | |
| status: | Fix Committed → Fix Released |

Indeed, the big issue here is that if you open a link in your html5 app it does open that link, but inside the container, leaving you no way to then go back to your app.