Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-778 META: Migrate to Ionic
  3. MOBILE-992

Create directive to open external links in external browser

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Libraries
    • Labels:
    • Testing Instructions:
      Hide
      1. Look at the diff and check that things still work
      2. Alternatively, try this snippet:

        <a href="http://google.com" mm-browser>Google</a>
        <a ng-href="http://moodle.org" mm-browser>Moodle.org</a>
        

      Show
      Look at the diff and check that things still work Alternatively, try this snippet: <a href="http://google.com" mm-browser>Google</a> <a ng-href="http://moodle.org" mm-browser>Moodle.org</a>
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      We should add a directive which handles the links that should be opened in a different window. In some cases links are opened in the app, thus overriding the app and leaving no way to go back to it.

      A directive would make that consistent throughout out the app without the need for us, or for plugin developers, to know if target="_blank", or _system, or a callback is required.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              fred Frédéric Massart
              Reporter:
              fred Frédéric Massart
              Peer reviewer:
              Dani Palou Dani Palou
              Tester:
              Juan Leyva Juan Leyva
              Participants:
              Component watchers:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                31/Jul/15