Link in admin menu to plugin configuration

I have a custom module with a new entry in the administration menu. A suboption of that menu should go directly to the plugin options. I expected something like this to work:

 

routes: {
    config: {
        component: 'sw-plugin-config',
        path: 'settings/:namespace',
        meta: {
            parentPath: 'sw.plugin.index'
        },

        props: {
            namespace: 'MyPlugin',
        }
    }
},


navigation: [
    {
        id: 'myplugin-config',
        label: 'Config',
        path: 'my.plugin.config',
        icon: 'default-object-lab-flask'
    }
]

This throws the following error: “Encountered an error while loading the configuration:Bundle by name “undefined” not found.”

It does work though when i’m on the plugin page and click the menu option … so it seems there’s some page param that is there on the plugin page that is not there on other pages.

maybe there’s a way to just serve an absolute path? or something 

1 „Gefällt mir“

Hi Pascal,

i have the same issue. Have you find out how it works?

Cheers

1 „Gefällt mir“

@Pascal1988 @padaja If you mean the Plugin config which you define in the config xml here you go:

navigation: [
    {
        id: 'myplugin-config',
        label: 'Config',
        path: 'sw.plugin.config',
        params: {
                namespace: "MyPluginName"
        }
    }
]