If you create a page_manager page that uses the IPE at a path like '/ipe' then the layout icons are displayed just fine.

However, if you use a path like '/path/to/ipe' then the layout icon images are broken!

It's trying to use relative paths like '/path/to/modules/panels/plugins/layouts/onecol/onecol.png' - the paths need to be rooted at the Drupal install path.

This affects nodes using Panelizer, because they have paths like '/node/2'.

Comments

dsnopek created an issue. See original summary.

samuel.mortenson’s picture

This patch prefixes the icon path with the current installation's base path at the controller level, which fixes the problem and maintains multisite support.

samuel.mortenson’s picture

Status: Active » Needs review
phenaproxima’s picture

Status: Needs review » Reviewed & tested by the community

That looks good to me.

samuel.mortenson’s picture

Status: Reviewed & tested by the community » Fixed

Committed!

  • samuel.mortenson committed 141e94e on
    Issue #2659548 by samuel.mortenson: Layout icons are broken under IPE if...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.