London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Problems linking to catalog items

Vote:
0

Hi

When linking to ie. a product the link is always empty (resulting in a Name tag), no matter which method I use; Html.ContentLink, Url.ContentUrl or UrlResolver.GetUrl

I've checked the usual suspects such as access/publish filters and HasTemplate()

The product has a controller and view and can be preview fine in edit-mode.

Using CMS 7.5 and Commerce 8.0 with latest the patches.

Could it be some provider-config thats missing?

Any suggestion on how to proceed troubleshooting is greatly appreciated.

#91539
Oct 08, 2014 12:37
Vote:
0

Can you navigate to the product you are trying to link to, does it have a working URL? Do you set up the routes for catalog content (calling CatalogRouteHelper.MapDefaultHierarchialRouter) in initialization?

#91548
Oct 08, 2014 14:24
Vote:
0

CatalogRouteHelper.MapDefaultHierarchialRouter was indeed missing. Everything works nice now, thanks Magnus.

#91646
Oct 09, 2014 22:43
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.