1) We need to create the missing canonical route & menu link (just like nodes and others have).
Not every site will want that to be user accessible, but that can be controlled via the "view stores" permission.

2) We need to change the urls for the canonical/edit/delete routes so that they aren't under admin/.
"/admin/commerce/stores/{commerce_store}" becomes "store/{commerce_store}", etc.
This does not impact the admin listing / collection.

The same pattern is used in core for user, block_content entities:

 *   links = {
 *     "canonical" = "/user/{user}",
 *     "edit-form" = "/user/{user}/edit",
 *     "cancel-form" = "/user/{user}/cancel",
 *     "collection" = "/admin/people",
 *   },
 *   links = {
 *     "canonical" = "/block/{block_content}",
 *     "delete-form" = "/block/{block_content}/delete",
 *     "edit-form" = "/block/{block_content}",
 *     "collection" = "/admin/structure/block/block-content",
 *   },

Comments

  • bojanz committed adf4b1d on
    Issue #2528914 by joshtaylor, taleski: Finalize the store routes
    
bojanz’s picture

Status: Active » Fixed

Committed in adf4b1de57475872334f967dbbbca78b5cb379b7.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.