M
M
mills2020-08-19 08:07:32
1C-Bitrix
mills, 2020-08-19 08:07:32

The page title does not change when ajax is enabled, what's the problem?

Hello!
I have a complex catalog component, ajax is enabled in it (so that the filter works instantly), emulation is enabled, that is, the page name in the browser changes, the link in the address bar changes, but here is the title / title of the section, the product is still on the initial section. or changes if you reload the page.
Tried using jquery to update $('.main-title').html('<?=$APPLICATION->ShowTitle();?>');
But it did not work out, can anyone come across a similar problem, tell me, please, how did you solve it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mills, 2020-08-19
@mills

Solved the problem by inserting the header output directly into the component template.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question