Created
April 15, 2019 06:34
-
-
Save kugimiya/6fe4505249f85687cb0013f8c1fd85ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/design/themes/responsive/templates/views/categories/components/categories_multicolumns.tpl b/design/themes/responsive/templates/views/categories/components/categories_multicolumns.tpl | |
index 2304c7d02d..8dd5cf875b 100644 | |
--- a/design/themes/responsive/templates/views/categories/components/categories_multicolumns.tpl | |
+++ b/design/themes/responsive/templates/views/categories/components/categories_multicolumns.tpl | |
@@ -6,7 +6,8 @@ | |
{foreach from=$scats item="category"} | |
{if $category} | |
<div class="ty-column{$columns} ty-subcategories-block__item"> | |
- <a href="{$category|fn_form_dropdown_object_link:$block.type}" class="ty-subcategories-block__a"> | |
+ {$href=$category|fn_form_dropdown_object_link:$block.type} | |
+ <a href="{if $href}{$href}{else}{"categories.view?category_id=`$category.category_id`"|fn_url}{/if}" class="ty-subcategories-block__a"> | |
{if $category.main_pair} | |
{include file="common/image.tpl" | |
show_detailed_link=false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment