Adding canonical url to forum's page

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
10/9/2013 2:26:09 AM
Nik
Gravatar
Total Posts 36
mojoportal.net.ua - Russian community of mojoportal

Adding canonical url to forum's page

Good day.

How may I add canonical url in forum topic's page?

Example

I have forum's page     */Forums/Thread.aspx?pageid=106&t=15~1
and canonical url          */Forums/Thread.aspx?pageid=106&t=15~-1
I need that canonical url there is on forum's page like an active link (without nofollow and noindex).

10/9/2013 6:32:13 AM
Gravatar
Total Posts 18439

Re: Adding canonical url to forum's page

I have no idea what you are asking but the forums already have canonical url links in the head element of the page and they are correct.

cannonical urls are not visible links they are not for users to click, they are for search indexes and they are in the head element as they should be

10/9/2013 7:54:19 AM
Nik
Gravatar
Total Posts 36
mojoportal.net.ua - Russian community of mojoportal

Re: Adding canonical url to forum's page

It's correct working for Google. 

But (how I wrote https://www.mojoportal.com/Forums/Thread.aspx?pageid=5&t=11948~1Yandex.ru is more popular search site in russian-speakers countries. Yandex "thinks" that i try to give him and user different content, because canonical urls there are only in sitemap and header.
Result - Yandex don't want to see the forum's pages.
I  try to fix it . If Yandex bot will see active url in user's content, maybe will index content.

Alternatively:

Disable canonical url only for forum.
I think - this is intresting variant.

When I search somethin in google https://www.google.com/search?client=opera&q=Thanks+for+the+explanation,+I+translated+some+strings+and+only+option+I+have+is+%22save%22+No+sync+or+Commit+option.+Suppose+my+changes+will+be+%22automatically%22+committed+and+synced+each+morning+then.&sourceid=opera&ie=utf-8&oe=utf-8&channel=suggest

I get http://www.mojoportal.com/Forums/Thread.aspx?pageid=5&t=6068~-1

and I will see all 49 replies. It's uncomfortable because I 1 answer (maybe 2 or 3 below) but not all post. It's realy many information and I must find something interesting for me in this content.

 
10/9/2013 3:02:58 PM
Gravatar
Total Posts 18439

Re: Adding canonical url to forum's page

Hi,

Ok, I've added a setting in our source code repository if you want to disable the canonical url, so if you use the latest source code you can add this in user.config:

<add key="Forum:DisableThreadCanonicalUrl" value="true" />​

Note that what you found in searching google for this site is correct because in this article google advises that if you have a multi page content then the canonical url should link to a full version on a single page. See mistake #1 in the linked article. Since forum threads have multiple pages we make it possible to flatten those pages into one page with all posts so that each forum thread is indexed as one document. In our paramter t=x~y x represents the thread id and y is the page number, if -1 is the page number then we show the full thread

Actually if someone is searching and the answer to their question does exist in the forum thread and they land at your site by clicking a link from google search then they should find what they are looking for. If they then have to click back and forth in pages of a forum thread to find it then it is not as good a user experience. According to google people generally prefer a single page when they are searching.

Hope that helps,

Joe

10/10/2013 12:36:23 AM
Nik
Gravatar
Total Posts 36
mojoportal.net.ua - Russian community of mojoportal

Re: Adding canonical url to forum's page

Thanks a lot.

You must sign in to post in the forums. This thread is closed to new posts.