statamic / cms

The core Laravel CMS Composer package
https://statamic.com
Other
3.71k stars 508 forks source link

No controller for asset edit URL #553

Closed sauerbraten closed 5 years ago

sauerbraten commented 5 years ago

redirecting to cp_route('assets.edit', $someID) doesn't work because there is no controller handling /cp/assets/YzE5YzhiOTEtYjU5Ny00ODQzLWFlZjctZDQ4YjdmODA0ODQ1/edit yet.

sauerbraten commented 5 years ago

Any way to link to the edit view for assets would be fine, actually.

jackmcdade commented 5 years ago

We never planned for direct url access to assets, so labeling this an enhancement and not a bug :) We'll still build it for you though, no worries.

sauerbraten commented 5 years ago

Oh, okay, great!

jesseleite commented 5 years ago

Just FYI, you would need to use the assets.browse.edit route, ie)

cp_route('assets.browse.edit', 'container/folder/image/path.jpg')

Which outputs:

/cp/assets/browse/container/folder/image/path.jpg/edit
jesseleite commented 5 years ago

@sauerbraten, You mentioned on call that there's still an issue here? I apologize, I didn't fully understand what you were getting at.

sauerbraten commented 5 years ago

Oh I forgot there was this issue. I opened a new one where I described the behavior I see: https://github.com/statamic/three-cms/issues/649

jasonvarga commented 5 years ago

I believe this is resolved. Reopen if not!