Elemental edit has_one redirects to front end if preview panel is open

SS4.1

I use silverstripe elemental. I made my own element witch has a $has_one to another element. When I try to edit the $has_on element in the backend it allways redirects me to the frontend. This is just happening with the preview panel open.

Just to make clear what i mean:


If i hit Add Content Block Element and the preview mode is split, i get redirected to the frontend.

Modules i use “sheadawson/silverstripe-linkable”, “ryanpotter/silverstripe-cms-theme”, “bummzack/sortablefile”. “tractorcow/silverstripe-fluent”, “dnadesign/silverstripe-elemental”

Maybe it is not a good idea the nest elements.
Any advice would be appreciated.

https://gist.github.com/Greg808/2553e5c3adfe20ac67178b25bb01e0c7

I found a solution I do not nest one element into another. I made a DataObject out of the nested element. Now everything works fine.