When adding a resource to be displayed in teh same browser window, enabling the "show course block" options leads to a wrong "setting" link in Admin course block.
The error occurs only when the page displays the resource with side blocks. In this case the "setting" link point to a non existen page.