Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I want to override certain node internal URLs using the 'uri callback' ability of entity_uri() and hook_entity_info(). Right now uc_product hard-codes the links to products as node/nid. It should not and use entity_uri() instead.
Comment | File | Size | Author |
---|---|---|---|
#5 | order-uri-fixes.patch | 5.84 KB | longwave |
| |||
#4 | node-uri-fixes.patch | 9.67 KB | longwave |
| |||
uc-product-uc-cart-url.patch | 896 bytes | Dave Reid | |
Comments
Comment #1
longwaveCommitted to 7.x-3.x, thanks! Needs porting to 8.x-4.x, there's also a few other places we assume node/$nid which could be replaced.
Comment #3
TR CreditAttribution: TR commentedBump.
Comment #4
longwaveThe original issue doesn't seem to be a problem any more, but there are some simpler methods we can use instead of calling Url::fromRoute() and Link::createFromRoute() when we have an entity object available.
Comment #5
longwaveOrders can be similarly simplified.
Comment #7
longwave