The "AdminEditButton" tag creates green "Edit Item" button on CMS pages, that once clicked will lead directly to an item editing page in Admin Console. It is pretty handy, because you don't need to leave page you're currently editing.
Unfortunately, when dealing with sub-items (e.g. images of a category, prices of product, etc.) the opened page is broken.
When building link in "AdminEditButton" tag and used prefix is sub-item of someone, then include these in built link:
- parent item id (taken from foreign key field if current item, so no extra SQLs)
- add parent item prefix to "pass" parameter