How to set the transition to the detailed view with the main?

Good afternoon.
Concluded the directory, but not make links to a detailed view of the product.
This problem occurs with the main and the root page Products. If we are in any subsection, for example, Products/Category 1, then everything is fine.
Here is the call:
<?$APPLICATION->IncludeComponent(
 "bitrix:catalog.section" 
 "small_card", 
array(
 "ACTION_VARIABLE" => "action",
 "ADD_PROPERTIES_TO_BASKET" => "Y",
 "ADD_SECTIONS_CHAIN" => "N",
 "ADD_TO_BASKET_ACTION" => "ADD",
 "AJAX_MODE" => "Y",
 "AJAX_OPTION_ADDITIONAL" => "",
 "AJAX_OPTION_HISTORY" => "Y",
 "AJAX_OPTION_JUMP" => "Y",
 "AJAX_OPTION_STYLE" => "Y",
 "BACKGROUND_IMAGE" => "-",
 "BASKET_URL" => "/personal/basket.php",
 "BROWSER_TITLE" => "-",
 "CACHE_FILTER" => "N",
 "CACHE_GROUPS" => "Y",
 "CACHE_TIME" => "36000000",
 "CACHE_TYPE" => "A",
 "COMPATIBLE_MODE" => "Y",
 "CONVERT_CURRENCY" => "N",
 "DETAIL_URL" => "/products/#SECTION_CODE#/#ELEMENT_CODE#/",
 "DISABLE_INIT_JS_IN_COMPONENT" => "N",
 "DISPLAY_BOTTOM_PAGER" => "Y",
 "DISPLAY_COMPARE" => "N",
 "DISPLAY_TOP_PAGER" => "N",
 "ELEMENT_SORT_FIELD" => "id",
 "ELEMENT_SORT_FIELD2" => "id",
 "ELEMENT_SORT_ORDER" => "asc",
 "ELEMENT_SORT_ORDER2" => "desc",
 "ENLARGE_PRODUCT" => "STRICT",
 "FILTER_NAME" => "arrFilter",
 "HIDE_NOT_AVAILABLE" => "N",
 "HIDE_NOT_AVAILABLE_OFFERS" => "N",
 "IBLOCK_ID" => "1",
 "IBLOCK_TYPE" => "product",
 "INCLUDE_SUBSECTIONS" => "Y",
 "LAZY_LOAD" => "N",
 "LINE_ELEMENT_COUNT" => "3",
 "LOAD_ON_SCROLL" => "N",
 "MESSAGE_404" => "",
 "MESS_BTN_ADD_TO_BASKET" => "add TO cart"
 "MESS_BTN_BUY" => "Buy",
 "MESS_BTN_DETAIL" => "read More"
 "MESS_BTN_SUBSCRIBE" => "Subscribe",
 "MESS_NOT_AVAILABLE" => "Not available",
 "META_DESCRIPTION" => "-",
 "META_KEYWORDS" => "-",
 "OFFERS_LIMIT" => "5",
 "PAGER_BASE_LINK_ENABLE" => "N",
 "PAGER_DESC_NUMBERING" => "N",
 "PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
 "PAGER_SHOW_ALL" => "N",
 "PAGER_SHOW_ALWAYS" => "N",
 "PAGER_TEMPLATE" => "round",
 "PAGER_TITLE" => "Products",
 "PAGE_ELEMENT_COUNT" => "20",
 "PARTIAL_PRODUCT_PROPERTIES" => "N",
 "PRICE_CODE" => array(
 0 => "roznica",
),
 "PRICE_VAT_INCLUDE" => "Y",
 "PRODUCT_BLOCKS_ORDER" => "price,props,sku quantityLimit,quantity buttons",
 "PRODUCT_ID_VARIABLE" => "id",
 "PRODUCT_PROPS_VARIABLE" => "prop",
 "PRODUCT_QUANTITY_VARIABLE" => "quantity",
 "PRODUCT_ROW_VARIANTS" = > "[{'VARIANT':'3','BIG_DATA':false},{'VARIANT':'3','BIG_DATA':false},{'VARIANT':'3','BIG_DATA':false},{'VARIANT':'3','BIG_DATA':false},{'VARIANT':'3','BIG_DATA':false}]",
 "PRODUCT_SUBSCRIPTION" => "Y",
 "RCM_PROD_ID" => $_REQUEST["PRODUCT_ID"],
 "RCM_TYPE" => "personal",
 "SECTION_CODE" => "",
 "SECTION_ID" => $_REQUEST["SECTION_ID"],
 "SECTION_ID_VARIABLE" => "SECTION_CODE",
 "SECTION_URL" => "/products/#SECTION_CODE#/",
 "SECTION_USER_FIELDS" => array(
 0 => "",
 1 => "",
),
 "SEF_MODE" => "Y",
 "SET_BROWSER_TITLE" => "Y",
 "SET_LAST_MODIFIED" => "N",
 "SET_META_DESCRIPTION" => "Y",
 "SET_META_KEYWORDS" => "Y",
 "SET_STATUS_404" => "N",
 "SET_TITLE" => "Y",
 "SHOW_404" => "N",
 "SHOW_ALL_WO_SECTION" => "N",
 "SHOW_CLOSE_POPUP" => "N",
 "SHOW_DISCOUNT_PERCENT" => "N",
 "SHOW_FROM_SECTION" => "N",
 "SHOW_MAX_QUANTITY" => "N",
 "SHOW_OLD_PRICE" => "N",
 "SHOW_PRICE_COUNT" => "1",
 "SHOW_SLIDER" => "Y",
 "TEMPLATE_THEME" => "blue",
 "USE_ENHANCED_ECOMMERCE" => "N",
 "USE_MAIN_ELEMENT_SECTION" => "N",
 "USE_PRICE_COUNT" => "N",
 "USE_PRODUCT_QUANTITY" => "N",
 "COMPONENT_TEMPLATE" => "small_card",
 "CUSTOM_FILTER" => "{\"CLASS_ID\":\"CondGroup\",\"DATA\":{\"All\":\"AND\",\"True\":\"True\"},\"CHILDREN\":[]}",
 "SLIDER_INTERVAL" => "3000",
 "SLIDER_PROGRESS" => "N",
 "ADD_PICT_PROP" => "-",
 "LABEL_PROP" => array(
),
 "SEF_RULE" => "",
 "SECTION_CODE_PATH" => ""
),
false
);?>
April 4th 20 at 13:21
1 answer
April 4th 20 at 13:23
Solution
Taken from the review about catalog_section
If you set the parameter 'SHOW_ALL_WO_SECTION' = 'Y' then link to the products section vanishes, i.e., the parameter DETAIL_URL ceases to work properly. Managed to fix by setting the parameter "BY_LINK"=> "Y"


The author of the question has helped to establish "SHOW_ALL_WO_SECTION" => "Y",

Find more questions by tags 1C-Bitrix