Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration button in admin links to base URL rather than specified admin.router.actions.configure.path #185

Open
Currey opened this issue Mar 21, 2024 · 0 comments

Comments

@Currey
Copy link

Currey commented Mar 21, 2024

Using Grav v1.7.45, Admin v1.10.45 and Flex Objects v1.3.6.

I am trying to enable Configuration for my flex object. Within my blueprint I have set a value for config.admin.router.actions.configure.path. The 'Configuration' button appears in the flex directory page in admin, however, the button leads to the base URL, not the expected path. I have followed the example

To replicate, I installed a fresh instance of Grav and Flex Objects plugin. I created a flex object in user/blueprints/flex-objects/test.yaml and set the configure path as instructed in the documentation.

config:
  admin:
    router:
      path: '/test'
      actions:
        configure:
          path: '/test/configure'

I can manually access the configuration page with http://localhost/admin/test/configure, but not with the 'Configuration' button in admin.

Am I missing something?

@Currey Currey changed the title Configuration button in admin links to base URL rather than specified admin.router.configure.path Configuration button in admin links to base URL rather than specified admin.router.actions.configure.path Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant