Skip to content

debugbar not showing up on translated routes? #1170

@rezaffm

Description

@rezaffm

Hi,

I am not sure if thats a bug or more an issue on my side.

I have an international project with some routes that include a locale prefix such as "/de". If I for instance visit the root of the project, I see the debugbar. If I visit the root with "/de" I don't see it.

I am sure there is something I missed - or is that the expected behavior?

Routes are created dynamically with a loop like....

<?php

foreach(app()->get('translatable.locales')->all() as $locale) {

    $prefix = '';
    $name = '';

    if ($locale !== config('app.default_locale')) {
        $prefix = $locale;
        $name = $locale . '.';
    }

    Route::prefix($prefix)->name($name)->group(function() use ($locale) {

        // Home (Root) route
        Route::get('/', 'Front\HomeController@index')->name('home.index');

...

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions