How to remove the section from the URL in Bitrix?

Hi all. I need to remove the section from the URL
site.ru/services/razdel/usluga
And it is necessary
site.ru/services/usluga

Use KK bitrix:catalog

"SEF_URL_TEMPLATES" => array(
 "sections" => "",
 "section" => "#SECTION_CODE#/",
 "element" => "#SECTION_CODE#/#ELEMENT_CODE#/",
 "compare" => "compare.php?action=#ACTION_CODE#",
 "smart_filter" => "#SECTION_ID#/filter/#SMART_FILTER_PATH#/apply/",
),


The URL of the page information block: #SITE_DIR#/services/
The URL of the page sections: #SITE_DIR#/services/#SECTION_CODE#/
The URL of the page of detailed view: #SITE_DIR#/services/#SECTION_CODE#/#ELEMENT_CODE#/

URLREWRITE:
array(
"CONDITION" => "#^/services/#",
"RULE" => "",
"ID" => "bitrix:catalog",
"PATH" => "/services/index.php",
),
Do:

"SEF_URL_TEMPLATES" => array(
 "sections" => "",
 "element" => "#ELEMENT_CODE#/"
),


The URL of the page information block: #SITE_DIR#/services/
The URL of the page sections:
The URL of the page of detailed view: #SITE_DIR#/services/#ELEMENT_CODE#/

Ceases to display detailed information.

What else can we do?
June 10th 19 at 15:57
1 answer
June 10th 19 at 15:59
In this case, in QC you need to edit the file sections.php - you have just there is no component bitrix.section

In General, in this case, you can abandon the integrated component to be placed in /services/index.php the component catalog.section, had in the settings 'ELEMENT_CODE' to take from the URL and everything. In URLREWRITE to write the same rule

Find more questions by tags 1C-Bitrix