Skip to content

Как изменить canonical тег главной страницы?

Добрый день!

Нашел ответ но для версии 3, поэтому не пинайте сразу.

Стоит последгняя версия ips4

В коде, на главной странице есть строка:

<link rel="canonical" href="https://forum.brobot.ru/index.php" />

Указывающая на, то, что главная страница (https://forum.brobot.ru), является дублем страницы https://forum.brobot.ru/index.php.

 

Необходимо заменить ссылку в этом теге на:

<link rel="canonical" href="https://forum.brobot.ru" />

Нашел в

core

global

global

includeMeta

 

код, который это добро выводит нашел, но как поменять не понимаю. Подсобите пожалуйста!

Featured Replies

applications/forums/modules/front/forums/index.php

		\IPS\Output::i()->linkTags['canonical'] = (string) \IPS\Http\Url::internal( 'app=forums&module=forums&controller=index', 'front', 'forums' );

  • Author

Нашел. И что с этим теперь делать?

Нашел. И что с этим теперь делать?

Исправить, как Вам надо.

        \IPS\Output::i()->linkTags['canonical'] = \IPS\Settings::i()->base_url;

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.