Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Problems linking to catalog items

Vote:
 

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:
 

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:
 

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.