Closed rhymeadam closed 3 years ago
Thank you for your contribution.
Unfortunately, you have created your issue in the wrong repository, as this is a read-only split repository. Please go to https://github.com/contao/contao and create your issue there.
Hi all, I am able to reproduce this in the Contao Demo as well. Here are the steps:
Create a new theme so there are 2 to choose from.
Create a new stylesheet in the Contao Demo theme.
Create a style in that stylesheet.
Click the "Themes" link in the left column navigation (id="tl_navigation"), then go to the new theme and create a stylesheet.
Create a new style in that stylesheet.
Click the "Themes" link in the left column navigation (id="tl_navigation") again.
Click the CSS icon for the new theme.
Edit the new theme's stylesheet.
Click the back button.
Instead of going back to the new theme's stylesheet parentView, it goes to the original Contao Demo theme's parentView.
I believe swapping the arrays in the "array_merge" on the following line fixes this, but I haven't tested it out fully yet. I understand that the stylesheets in Contao are going to be removed, but other extensions and customizations that we have built depend on this functionality to work properly. Please let me know if this can be fixed sometime soon. Thanks!
https://github.com/contao/core-bundle/blob/7c86adf2e04faae96bd303989a64543d60b22b7b/src/EventListener/StoreRefererListener.php#L85