Closed ningensei closed 5 years ago
How do you edit the ElementalArea? Elemental doesn't give you a way to do this directly, per-se. It gives you the CMS area interface listing blocks etc, is that what you're referring to? If so, where does the URL come into play for that?
I have a similar issue with IE11, but only for Elements where $inline_editable = false
Elemental Version: 4.0.3 SilverStripe Framework/CMS Version: 4.4.1
The URL which returns a 404 is in the same format as reported originally by @ningensei. Comparing it to the expected URL, it appears there is an additional admin/pages/edit/show/
at the start of the path.
My hunch is that there is an issue in the JavaScript that handles the page navigation, however I don't see any errors logged in the console.
I've been debugging in IE's devtools and it seems the issue is due to relative/absolute URLs, and I've tracked it down to this line:
Here the value of link
is admin/pages/edit/EditForm/6/field/ElementalArea/item/2/edit
Chrome/Firefox seem to treat that as an absolute URL and replace the existing path. IE11 seems to treat it as a relative URL and only replaces the very last section of the current URL.
A naive solution would be prepending link
with a forward slash so that it's always treated as an absolute URL, but I'm not sure whether that would have any consequences elsewhere.
Given the report implies some blocks aren't editable through the UI for IE11, which is a supported browser, bumping this to critical
Ah yep, easy to reproduce with a "Form block" which comes with dnadesign/silverstripe-elemental-userforms. Thanks.
PR at #690
Closed by #690
Elemental Version: 4.1.0 SilverStripe Version: 4.4.0
The url is malformed when trying to edit an ElementalArea item.
This is what I get in chrome: /admin/pages/edit/EditForm/6/field/ElementalArea/item/2/edit
and this in IE11: /admin/pages/edit/show/admin/pages/edit/EditForm/6/field/ElementalArea/item/2/edit