Active
Project:
Panelizer (obsolete)
Version:
8.x-4.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Aug 2017 at 20:16 UTC
Updated:
10 Jan 2018 at 17:04 UTC
Jump to comment: Most recent
Comments
Comment #2
jgirault commentedComment #3
jgirault commentedWe found the root cause of this issue. We are using the Rename Admin Paths module which interferes with Drupal's ability to recognize Panelizer's required jquery.min library on the file paths. This is why we get the 404. After disabling Rename Admin Paths, the jquery.min library could be found and we no longer get 404.
Comment #4
damienmckennaLets move the issue over to the Rename Admin Paths issue queue so that maybe it can be adjusted to not break Panelizer? Of course if it turns out there's another way of resolving it via Panelizer directly I'd be happy to commit a fix.
Comment #5
raphael apard commentedThanks for reporting!
I don't understand why jquery path turn in 404. It's the drupal core library and it's working good with rename admin paths.
I see in panels_ipe.js a hardcoded path using "admin" :
url: drupalSettings.path.baseUrl + 'admin/panelizer/panels_ipe/'...
What's happen if you change admin with you new admin path ?
Comment #6
slootjes commentedThis is not a bug of the "rename admin paths" module imo. Urls or paths should not be hardcoded. Use route names or instead render the paths by using the router and route names.
Comment #7
damienmckennaLooking at Panelizer's JS, in panels_ipe.js it includes the following:
So that means that yes, it's Panelizer's fault the URLs are being broken.