Topic: how to get link canonical?

Hy punbb
i have question
how to get link canonical ?
when i browse in http://punbb.informer.com/forums/post/155736/#p155736
in manifest.xml this will get the link of post not canonical

forum_link($forum_url['post'], $cur_post['id'])

how to i get link http://punbb.informer.com/forums/topic/ … orums-003/


please your help punbb ^^

sorry my BAD english T___T
Have a nice day >.<
(^____^)v

Re: how to get link canonical?

в файле viewtopic.php вставить

$link_canonical = forum_link($forum_url['topic'], array($id, sef_friendly($cur_topic['subject'])));

echo $link_canonical;

если вам нужно получить каноническую ссылку на топик для отображения мета тега rel="canonical"

        if (FORUM_PAGE == 'viewtopic')
        {
            if ($pid > 0)
            {
                $link_canonical = forum_link($forum_url['topic'], array($id, sef_friendly($cur_topic['subject'])));
                $forum_head['canonical'] = '<link rel="canonical" href="'.$link_canonical.'" />';
            }
        }

навесить на хук hd_head

3 (edited by kudataz 2016-04-21 01:12)

Re: how to get link canonical?

PanBB.Ru wrote:

в файле viewtopic.php вставить
навесить на хук hd_head

case close, love u panbb.ru
thx u so much for answer
working fine :3
https://media.giphy.com/media/jQqU9dCKUOdri/giphy.gif

sorry my BAD english T___T
Have a nice day >.<
(^____^)v