Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-32131

Change markup of svg icons in admin UI to support CDNs

    XMLWordPrintable

Details

    Description

      The admin UI is full of code link this:

      <svg class="ez-icon ez-icon-medium ez-icon-dark ez-spin">
        <use xlink:href="{{ asset('bundles/ezplatformadminui/img/ez-icons.svg') }}#spinner">. 
        </use>
      </svg>
      

      This raises two problems
      1) `xlink:href` is deprecated in the browsers

      2) There is no support for cross-origin policy on the `use` element

      See Mozilla documentation above.

      This makes it impossible to load assets on separate domains, eg a CDN.
      There is no way that https://www.ibexa.co/ could refers to its assets on https://static.ibexa.co/ when svg's are made like this.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            de2b1367-797b-4d72-9118-9004e4409779@accounts.ibexa.co Rune Langseid
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: