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

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Minor Minor
    • 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

      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.

            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

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.