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

Redirect to Settings after saving a plugin’s settings #3216

Closed
carlcs opened this issue Aug 20, 2018 · 6 comments
Closed

Redirect to Settings after saving a plugin’s settings #3216

carlcs opened this issue Aug 20, 2018 · 6 comments

Comments

@carlcs
Copy link
Contributor

carlcs commented Aug 20, 2018

It would be nicer if you get redirected to Settings instead of Settings > Plugins. The plugins section on the main Settings page makes it much simpler to find the link.

Steps to reproduce

  1. On a plugin’s settings page click save
  2. See how you’ve been redirected to Settings > Plugins
  3. If you now want to make more changes to the plugin’s settings, it is hard to find the link again, in the list of all plugins.
@brandonkelly
Copy link
Member

Good idea – done.

@narration-sd
Copy link
Contributor

@carlcs You likely know it, but for others this little thing can be very handy when you want to keep your Settings in view after saving -- as with a table of items, etc..

{{ redirectInput('settings/plugins/your-plugin-handle') }}

@carlcs
Copy link
Contributor Author

carlcs commented Aug 20, 2018

Hm this brings me to another idea, what if plugin settings had support for the cmd + s shortcut.
There's probably some other open issue with a request for cmd + s support on all pages where I can save some thing, somewhere.

@brandonkelly
Copy link
Member

Pretty sure they already do, as long as they’re not overriding the settings form.

@narration-sd
Copy link
Contributor

yes, works for me

@carlcs
Copy link
Contributor Author

carlcs commented Aug 21, 2018

Sorry, I wasn’t in front of a Craft CP when I replied. What I actually had in mind was that cmd + s would always keep you on the current page, the “Save and continue editing” behavior of edit element pages.

Click Save button → redirect
Keyboard shortcut → stay on current page …for any page in the CP with a Save button

I found a related issue now #2872

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

3 participants