diff --git a/plugins/content_types/library_list.inc b/plugins/content_types/library_list.inc index 05da8a7..a8b989b 100644 --- a/plugins/content_types/library_list.inc +++ b/plugins/content_types/library_list.inc @@ -66,7 +66,11 @@ function ding_library_library_list_content_type_render($subtype, $conf, $panel_a } foreach ($nodes as $node) { - $uri = drupal_lookup_path('alias', 'node/' . $node->nid) . '/' . $conf['slug'] . $suffix; + $node_path = 'node/' . $node->nid; + $node_alias = drupal_lookup_path('alias', $node_path); + $path_args = '/' . $conf['slug'] . $suffix; + // If we have a alias then use it, else use original path. + $uri = !empty($node_alias) ? $node_alias . $path_args : $node_path . $path_args; $items[$uri] = $node->title; }