_ContentMixin.getCurrentContext() returns incorrect context on ContentArea->Create a new Block


I have a custom component on a block that uses the _ContextMixin as described in the following link


If I create a new block the context describes the block where the property exists as expected.

If I, on the other hand, have a page with a ContentArea and clicks the "Create a new block" link on that content area, the context returned is not the block context but the page context where the ContentArea is located.

Apr 18, 2018 11:25

Seems like a bug. You should probably report it to Epi. 

Apr 23, 2018 16:26

Already done, but they need a working code sample based on their alloy sample so I have to write such an example to get any further.... Frustrating....

Apr 23, 2018 16:48

Problem can be reproduced by the AlloyDemoKit fork at 


Edited, Apr 24, 2018 16:53
<p>Solved the issue with help from episerver support.</p> <p>The solution was to add information to the metadata for the editor.</p> <p>See commit below</p> <p>https://github.com/meriworks/AlloyDemoKit/commit/e1d8e35b906e70680a95bd25f5b50ed3f90de80c</p>
Jun 04, 2018 8:50
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.