Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-11442

fix 'canonical' tag in static docs site

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.4
    • Fix Version/s: 7.5
    • Component/s: Documentation, Web
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      Currently the href values of the canonical tags in the static site is value of the metadata path listed for the page. For instance, the path metadata value for the Narrowing the Focus page is "/project-administration/narrowing-the-focus/". However, that's neither the correct URL for the page, nor even the correct relative path. Further, canonical URLs should be full, not relative. So instead we should be publishing this as the canonical href value for that page:

      https://docs.sonarqube.org/latest[metadata path]

      This is the value that should be used for both the "latest" copy of the docs and for the versioned copy.

        Attachments

          Activity

            People

            Assignee:
            gregoire.aubert Gregoire Aubert
            Reporter:
            ann.campbell.2 Ann Campbell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: