# RESOLVED: Underscored routes on cake4

**URL:** https://discourse.cakephp.org/t/resolved-underscored-routes-on-cake4/7119
**Category:** Need Help
**Created:** [January 17, 2020, 6:08pm UTC](https://discourse.cakephp.org/t/resolved-underscored-routes-on-cake4/7119 "2020-01-17T18:08:57Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![gersonfs](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@gersonfs](https://discourse.cakephp.org/u/gersonfs)
#### Post date: [January 17, 2020, 6:08pm UTC](https://discourse.cakephp.org/t/resolved-underscored-routes-on-cake4/7119/1 "2020-01-17T18:08:57Z")

</div>

Hello!

I am trying to use routes with undersore as I am migrating an app on cake2 to cake4. I have a plugin called OwNfe with a NfeAnaliticos controller.  
The content of plugins/OwNfe/config/routes.php file is:

```
Router::plugin(
    'OwNfe',
    ['path' => '/ow_nfe'],
    function ($routes) {
        $routes->setRouteClass(InflectedRoute::class);
        $routes->scope('/', function (RouteBuilder $builder) {
            $builder->fallbacks();
        });
    }
);

```

But when i do $this-\>Html-\>link(\_\_(‘New Nfe Analitico’), [‘action’ =\> ‘add’]); i expect the url ‘/ow\_nfe/nfe\_analiticos/add’ but cakephp give me ‘/ow-nfe/nfe\_analiticos/add’.  
What am I doing wrong? You would need the plugin to be undersore as well as the controller.  
Thanks!

---

<div class="post-metadata">

### Author: ![gersonfs](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@gersonfs](https://discourse.cakephp.org/u/gersonfs)
#### Post date: [January 17, 2020, 7:03pm UTC](https://discourse.cakephp.org/t/resolved-underscored-routes-on-cake4/7119/2 "2020-01-17T19:03:13Z")

</div>

I found the problem… This route (/ow-nfe) was on file `plugins/OwNfe/src/Plugin.php`
