Customize View Express Entity URL

When viewing an Express entity on a detail page, the URL path to view it looks like this:

myconcretesite.biz/express-detail-page/view_express_entity/entry-id

Is there some way to customize the “view_express_entity” part of the URL?

Basically, I want to make the entry detail pages have a cleaner URL for sharing purposes.

  1. Override controller of express_entry_detail block

Create a php file that extends \Concrete\Block\ExpressEntryDetail\Controller and put it at application/blocks/express_entry_detail/controller.php

You just need to add a “clean” method name like “action_detail” and copy code from “action_view_express_entity” method of the parent class. Of course, you need to change “view_express_entity” to your method name like “detail”

  1. Create a custom template of express_entry_list block

You can create a custom template in application/blocks/express_entry_list/templates/ directory and copy code from concrete/blocks/express_entry_list/view.php.
you need to change “view_express_entity” to your method name like “detail” in this file also.