P
P
Pavel Sidorov2020-05-06 21:19:43
1C-Bitrix
Pavel Sidorov, 2020-05-06 21:19:43

How to take into account hard links from banners when multisite?

Good!
I made my own decision for the market. I install the second site. The main page has a slider with a href button. In an infoblock, this property is of type string. The person substitutes url and all. The news list component.

<a href="<?=$arItem['PROPERTIES']['HREF']['VALUE']?>" class="submit"><?=Getmessage('DETAIL');?></a>


The default is "/" and therefore the problem is that when they put the second site on click, it goes to the first site.

How to take into account hard links from banners when multisite? Tell me, I can't figure it out. Or how to do it differently?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kontrael, 2020-05-08
@Kontrael

It all depends on how multisite is configured.
If on different domains, then there will be no problem.
If by folders, then SITE_DIR solves the problem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question