CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Documentation, Book and Training Resources (Moderator: Michał Mach) »
  • Adding rel=canonical to older documentation
Pages: [1]

Author Topic: Adding rel=canonical to older documentation  (Read 2227 times)

AndyHarkness

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 0
    • Andy's Blog
  • CiviCRM version: 4.5.0
  • CMS version: Wordpress 4.0
  • MySQL version: 5.1.61
  • PHP version: 5.3.3
Adding rel=canonical to older documentation
March 06, 2013, 03:13:07 am
Might it be possible to add a rel=canonical tag to older documentation so that Google does a better job of indexing the most current form of documentation? So for example if:

Code: [Select]
<link rel="canonical" href="http://wiki.civicrm.org/confluence/display/CRMDOC42/Installation+and+Upgrades"/>

was added to the page on http://wiki.civicrm.org/confluence/display/CRMDOC41/Installation+and+Upgrades then Google would probably point people to the most up-to-date version instead of the old documentation.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Adding rel=canonical to older documentation
March 06, 2013, 03:34:26 am
IMO, the main solution is to keep the most up to date version with the same url (always
http://wiki.civicrm.org/confluence/display/CRM/Installation+and+Upgrades ) and when there is a new version, copy it to a read only new name space http://wiki.civicrm.org/confluence/display/CRM4x/Installation+and+Upgrades

That would insure that by default, the links shared are always the current version, and therefore the one that is going to be most visible on google
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

AndyHarkness

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 0
    • Andy's Blog
  • CiviCRM version: 4.5.0
  • CMS version: Wordpress 4.0
  • MySQL version: 5.1.61
  • PHP version: 5.3.3
Re: Adding rel=canonical to older documentation
March 06, 2013, 03:40:04 am
Quote from: xavier on March 06, 2013, 03:34:26 am
IMO, the main solution is to keep the most up to date version with the same url

That makes sense... for good measure it might be good to add rel=canonical to any older versions with different URLs too.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Adding rel=canonical to older documentation
March 06, 2013, 03:46:06 am
Quote from: xavier on March 06, 2013, 03:34:26 am
IMO, the main solution is to keep the most up to date version with the same url (always
http://wiki.civicrm.org/confluence/display/CRM/Installation+and+Upgrades )

+1
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Adding rel=canonical to older documentation
March 08, 2013, 06:11:35 am
Hey there,

We have been wrestling with this for a while.  Do you any of you want to push it forward? If so might be worth putting together a proposed solution for comment.  We discuss a little (i seem to remember there were some down sides as well that we might have missed in this discussion so far) and then implement.



Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Adding rel=canonical to older documentation
March 08, 2013, 06:17:34 am
The only issue might be linking each version to its own docs. When 4.3 comes out, for example, if the link for the live docs is http://wiki.civicrm.org/confluence/display/CRM/XXXX and we use that in the code then when 4.4 comes out, and things change, the link for an old 4.3 site should be http://wiki.civicrm.org/confluence/display/CRM43/XXXX Therefore we might want to do both, i.e. have both of those links active, perhaps have CRM43 redirect to CRM of that's better for SEO

I can't think of any other reasons not to do this.

What I would suggest is that when 4.3 comes out, we release this new format for the wiki. All old pages remain as they are--the only real change, I think, is that the latest release will be available at /CRM/ However what I suggested above about duplicating links may require more discussion.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Adding rel=canonical to older documentation
March 08, 2013, 06:53:18 am
So we have two options:
- the existing one: by default any link goes to an obsolete version when there is a new release*
- the suggested one: by default any link goes to the latest release, even when written for an older one

I'd venture it's far less common to want to create a link to a page in a specific release than to whatever is most recent. At least when I do a search, I often end up with an old version and have to navigate the wiki to find the most recent version but hardly ever end up on the latest version but needs an older one.

As for the links embedded into the civicrm installs, we might indeed have a CRM43 that redirects to CRM until there is a 4.4 version and there is a "real CRM43" readonly namespace when CRM becomes the document for the 44 version.

I don't know if it's already the case, but the version can be a param of the urldoc, so we won't have to modify (and retranslate) all the texts that contains a link to the wiki

X+

*strictly speaking, you can replace CRM{version} by CRMDOC when you write the url, but hardly anyone does that outside of the book.
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Adding rel=canonical to older documentation
March 12, 2013, 02:44:39 am
FWIW we do something similar with the book where we have / and /current as aliases for the current version.  We do that the old school way with symlinks in a directory. i am wondering if there are any reasons why we shouldn't do this for the wiki?

i think dave might know of some counter arguments.

michael
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Adding rel=canonical to older documentation
March 12, 2013, 04:16:44 pm
I "think" fixing things for Google search is a bit separate from how we encode embedded linkages on CiviCRM.org and in CiviCRM installs (help text primarily). The current approach for the embedded linkages problem (which seems decent) is that all links use CRMDOC (without version) - and we redirect requests w/ that pattern to the latest stable version wiki space.

Example:
http://wiki.civicrm.org/confluence/display/CRMDOC/2.+Install currently redirects to http://wiki.civicrm.org/confluence/display/CRMDOC42/2.+Install

This doesn't help w/ Google searches however, and I don't think we have page level control over HTML headers on the wiki. Not sure what else we can / should do for the search situation?
Protect your investment in CiviCRM by  becoming a Member!

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Adding rel=canonical to older documentation
March 12, 2013, 09:45:57 pm
touching on what dave said, see related thread here forum.civicrm.org/index.php/topic,25784.0.html

Would be nice if we could fix all these related things at once
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Adding rel=canonical to older documentation
March 13, 2013, 06:36:25 pm
I replied w/ a possible solution here: http://forum.civicrm.org/index.php/topic,25784.msg119688.html#msg119688
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Documentation, Book and Training Resources (Moderator: Michał Mach) »
  • Adding rel=canonical to older documentation

This forum was archived on 2017-11-26.