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

Plugin ignores 'panel.slug' configuration and defaults to /panel after oAuth process #40

Open
asabosch opened this issue Jul 2, 2024 · 0 comments

Comments

@asabosch
Copy link

asabosch commented Jul 2, 2024

Hi,

I've set the Kirby configuration option for the panel slug:
'panel' => ['slug' => 'backend']

Unfortunately, the plugin redirects to /panel after the oAuth process, ignoring the custom slug setting.

Code Example:

Here's the relevant part of the plugin's code, class Controller:

private function goToPanel() {
    go("panel");
}

Expected Behavior:

The plugin should read the Kirby configuration setting for panel.slug and use that instead of hardcoding the /panel path.

Steps to Reproduce:

  • Set panel.slug in Kirby configuration to a custom value, e.g., 'backend'.
  • Perform an oAuth process that triggers the redirect to the panel.
  • Observe that the plugin redirects to /panel instead of the custom slug.

Suggested Fix:

Modify the plugin to read the Kirby configuration setting for panel.slug and use that value for redirection.

Thank you for considering this enhancement.

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