I have made a link in the front-end of the website to get easy access to the panel and the current page. And it works great as long there is no URL-key involved. Is there a way I construct the link to edit the current page in the panel with a URL-key and also make sure the language in selected in the panel is correct?
My current link:
<a href="<?php echo url('panel/pages/' . $page->uri() . '/edit') ?>" target="_blank">EDIT CONTENT</a>