# Problem with url in plugin's templates in Cakephp 4

**URL:** <https://discourse.cakephp.org/t/problem-with-url-in-plugins-templates-in-cakephp-4/10526>\
**Category:** Need Help\
**Created:** [July 18, 2022, 11:13am UTC](https://discourse.cakephp.org/t/problem-with-url-in-plugins-templates-in-cakephp-4/10526 "2022-07-18T11:13:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oliv](https://avatars.discourse-cdn.com/v4/letter/o/45deac/32.png) [@Oliv](https://discourse.cakephp.org/u/Oliv)\
**Post date:** [July 18, 2022, 11:13am UTC](https://discourse.cakephp.org/t/problem-with-url-in-plugins-templates-in-cakephp-4/10526/1 "2022-07-18T11:13:32Z")

</div>

Hi,

I’m creating a plugin in Cakephp 4 for CRUD email alias through my webhosting’s API (OVH API).

My plugin `OvhManager` uses prefix `Admin` and contains :

- `EmailAliasController`
- templates `index`, `add`, `edit`

The layout used to render this templates is the App’s one (named `admin-layout` and outside of my plugin).

When I follow a route of my plugin (e.g `/admin/ovh-manager/email-alias/index`), all the links in the layout are wrong because they all have `'plugin' => 'OvhManager'` automatically added.

I could add `'plugin' => null` to all the links of the layout but it seems a hard work to me.

Is there a better way to disable plugin in the links generated in the layout ?

For example is there a way in my `EMailAliasController::beforeFilter()` to tell to use `admin-layout` but without adding the plugin OvhManager to the routes ?
