cherry-pick canonical link fix into old 1.1.x branch

We need to do this to enable the "jump to a newer version of this page" links to work in the puppetdb 1.1 manual. See this page for example: http://docs.puppetlabs.com/puppetdb/1.1/index.html