There is already a url that will make it jump to the add_plugin. The problem was that the current_page was not set per request since the page middleware did not detect any page_id in the url. That's the reason I added a similar url pattern but with the page_id in it in order to make the middleware know that the request refers to an existing cms page.