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

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0
    • 2.0
    • Libraries
    • 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>
    • MOODLE_20_STABLE
    • 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

              fred Frédéric Massart
              fred Frédéric Massart
              Dani Palou Dani Palou
              Juan Leyva Juan Leyva
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                31/Jul/15