Skip to content

Instantly share code, notes, and snippets.

@kugimiya
Created April 15, 2019 06:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kugimiya/6fe4505249f85687cb0013f8c1fd85ca to your computer and use it in GitHub Desktop.
Save kugimiya/6fe4505249f85687cb0013f8c1fd85ca to your computer and use it in GitHub Desktop.
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