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

[5.x] Create edit/{id} route for control panel access #11092

Merged
merged 3 commits into from
Nov 7, 2024

Conversation

aaronbushnell
Copy link
Contributor

This is more of an invisible nicety that I think is really useful in Craft CMS.

Sometimes I have just the ID of a given entry and I want to get to the control panel edit screen with that information alone. I can simply go to /admin/edit/{id} and it will take me to the correct spot in the admin area. Now this is possible with Statamic.

  • Given an entry that has an ID of 72edf157-4010-4ebc-9c8c-146181c12c4c and is in the "Blog" collection
  • If you go to /admin/edit/72edf157-4010-4ebc-9c8c-146181c12c4c
  • You will be redirected (and prompted to sign in if not already) to /admin/collections/blog/entries/72edf157-4010-4ebc-9c8c-146181c12c4c

@jasonvarga jasonvarga changed the title [5.x] Create edit/{id} route for entry control panel access [5.x] Create edit/{id} route for control panel access Nov 7, 2024
@jasonvarga jasonvarga merged commit c6727f3 into statamic:5.x Nov 7, 2024
16 checks passed
@aaronbushnell aaronbushnell deleted the create-edit-route branch November 8, 2024 13:51
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

Successfully merging this pull request may close these issues.

2 participants