S
S
strify_252017-03-01 14:02:16
1C-Bitrix
strify_25, 2017-03-01 14:02:16

How to make rel="canonical" with main element section?

In the catalog, items are linked to several sections, indicating the main one. There is no item "Set canonical URL" in the catalog component settings. Found solutions in which DETAIL_PAGE_URL or CurDir is used as url. But this does not suit me, the address must be taken from the main section. Is it possible to get this element parameter somehow? It is not in arResult

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Likhachev, 2017-03-01
@Playbot

Do you have a modified catalog component?
https://dev.1c-bitrix.ru/learning/course/?COURSE_I...

O
Oleg Maksimenko, 2017-03-02
@olegprof

There is such a way (for developers) https://www.olegpro.ru/post/1s_bitriks_kastomnye_k...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question