Repository: cordova-docs
Updated Branches:
  refs/heads/master bc8c31373 -> d0f444659


CB-11234: Improving SEO for plugin and latest docs

Adds redirects for the old plugin API page paths in latest
so that the not-latest-version warnings can give links to
the latest docs. Also updating canonical links for docs pages
to point to latest versions.

This closes #592


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/d0f44465
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/d0f44465
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/d0f44465

Branch: refs/heads/master
Commit: d0f444659cc1d53af0875328dc4cfd76c1f54249
Parents: bc8c313
Author: Richard Knoll <richard.b.kn...@gmail.com>
Authored: Mon May 2 16:54:56 2016 -0700
Committer: Richard Knoll <richard.b.kn...@gmail.com>
Committed: Mon May 9 13:29:23 2016 -0700

----------------------------------------------------------------------
 www/_data/redirects.yml | 258 +++++++++++++++++++++++++++++++++++++++++++
 www/_includes/head.html |  16 ++-
 2 files changed, 273 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/d0f44465/www/_data/redirects.yml
----------------------------------------------------------------------
diff --git a/www/_data/redirects.yml b/www/_data/redirects.yml
index 33546ce..7280bb8 100644
--- a/www/_data/redirects.yml
+++ b/www/_data/redirects.yml
@@ -40,6 +40,264 @@ docs:
     "dev/cordova/plugins/pluginapis.html": "deprecated.html"
     "latest/cordova/plugins/pluginapis.html": "deprecated.html"
 
+    # Old plugin API docs need to be redirected to latest where we pull in the 
READMEs
+    "latest/cordova/accelerometer/acceleration/acceleration.html": 
"latest/reference/cordova-plugin-device-motion/index.html"
+    "latest/cordova/accelerometer/accelerometer.clearWatch.html": 
"latest/reference/cordova-plugin-device-motion/index.html"
+    "latest/cordova/accelerometer/accelerometer.getCurrentAcceleration.html": 
"latest/reference/cordova-plugin-device-motion/index.html"
+    "latest/cordova/accelerometer/accelerometer.html": 
"latest/reference/cordova-plugin-device-motion/index.html"
+    "latest/cordova/accelerometer/accelerometer.watchAcceleration.html": 
"latest/reference/cordova-plugin-device-motion/index.html"
+    "latest/cordova/accelerometer/parameters/accelerometerError.html": 
"latest/reference/cordova-plugin-device-motion/index.html"
+    "latest/cordova/accelerometer/parameters/accelerometerOptions.html": 
"latest/reference/cordova-plugin-device-motion/index.html"
+    "latest/cordova/accelerometer/parameters/accelerometerSuccess.html": 
"latest/reference/cordova-plugin-device-motion/index.html"
+
+    "latest/cordova/camera/camera.cleanup.html": 
"latest/reference/cordova-plugin-camera/index.html"
+    "latest/cordova/camera/camera.getPicture.html": 
"latest/reference/cordova-plugin-camera/index.html"
+    "latest/cordova/camera/camera.html": 
"latest/reference/cordova-plugin-camera/index.html"
+    "latest/cordova/camera/parameter/cameraError.html": 
"latest/reference/cordova-plugin-camera/index.html"
+    "latest/cordova/camera/parameter/cameraOptions.html": 
"latest/reference/cordova-plugin-camera/index.html"
+    "latest/cordova/camera/parameter/CameraPopoverHandle.html": 
"latest/reference/cordova-plugin-camera/index.html"
+    "latest/cordova/camera/parameter/CameraPopoverOptions.html": 
"latest/reference/cordova-plugin-camera/index.html"
+    "latest/cordova/camera/parameter/cameraSuccess.html": 
"latest/reference/cordova-plugin-camera/index.html"
+
+    "latest/cordova/compass/compass.clearWatch.html": 
"latest/reference/cordova-plugin-device-orientation/index.html"
+    "latest/cordova/compass/compass.clearWatchFilter.html": 
"latest/reference/cordova-plugin-device-orientation/index.html"
+    "latest/cordova/compass/compass.getCurrentHeading.html": 
"latest/reference/cordova-plugin-device-orientation/index.html"
+    "latest/cordova/compass/compass.html": 
"latest/reference/cordova-plugin-device-orientation/index.html"
+    "latest/cordova/compass/compass.watchHeading.html": 
"latest/reference/cordova-plugin-device-orientation/index.html"
+    "latest/cordova/compass/compass.watchHeadingFilter.html": 
"latest/reference/cordova-plugin-device-orientation/index.html"
+    "latest/cordova/compass/compassError/compassError.html": 
"latest/reference/cordova-plugin-device-orientation/index.html"
+    "latest/cordova/compass/parameters/compassError.html": 
"latest/reference/cordova-plugin-device-orientation/index.html"
+    "latest/cordova/compass/parameters/compassHeading.html": 
"latest/reference/cordova-plugin-device-orientation/index.html"
+    "latest/cordova/compass/parameters/compassOptions.html": 
"latest/reference/cordova-plugin-device-orientation/index.html"
+    "latest/cordova/compass/parameters/compassSuccess.html": 
"latest/reference/cordova-plugin-device-orientation/index.html"
+
+    "latest/cordova/connection/connection.html": 
"latest/reference/cordova-plugin-network-information/index.html"
+    "latest/cordova/connection/connection.type.html": 
"latest/reference/cordova-plugin-network-information/index.html"
+    "latest/cordova/contacts/Contact/contact.html": 
"latest/reference/cordova-plugin-contacts/index.html"
+    "latest/cordova/contacts/ContactAddress/contactaddress.html": 
"latest/reference/cordova-plugin-contacts/index.html"
+    "latest/cordova/contacts/ContactError/contactError.html": 
"latest/reference/cordova-plugin-contacts/index.html"
+    "latest/cordova/contacts/ContactField/contactfield.html": 
"latest/reference/cordova-plugin-contacts/index.html"
+    "latest/cordova/contacts/ContactFindOptions/contactfindoptions.html": 
"latest/reference/cordova-plugin-contacts/index.html"
+    "latest/cordova/contacts/ContactName/contactname.html": 
"latest/reference/cordova-plugin-contacts/index.html"
+    "latest/cordova/contacts/ContactOrganization/contactorganization.html": 
"latest/reference/cordova-plugin-contacts/index.html"
+    "latest/cordova/contacts/contacts.create.html": 
"latest/reference/cordova-plugin-contacts/index.html"
+    "latest/cordova/contacts/contacts.find.html": 
"latest/reference/cordova-plugin-contacts/index.html"
+    "latest/cordova/contacts/contacts.html": 
"latest/reference/cordova-plugin-contacts/index.html"
+    "latest/cordova/contacts/parameters/contactError.html": 
"latest/reference/cordova-plugin-contacts/index.html"
+    "latest/cordova/contacts/parameters/contactFields.html": 
"latest/reference/cordova-plugin-contacts/index.html"
+    "latest/cordova/contacts/parameters/contactFindOptions.html": 
"latest/reference/cordova-plugin-contacts/index.html"
+    "latest/cordova/contacts/parameters/contactSuccess.html": 
"latest/reference/cordova-plugin-contacts/index.html"
+
+    "latest/cordova/device/device.cordova.html": 
"latest/reference/cordova-plugin-device/index.html"
+    "latest/cordova/device/device.html": 
"latest/reference/cordova-plugin-device/index.html"
+    "latest/cordova/device/device.model.html": 
"latest/reference/cordova-plugin-device/index.html"
+    "latest/cordova/device/device.name.html": 
"latest/reference/cordova-plugin-device/index.html"
+    "latest/cordova/device/device.platform.html": 
"latest/reference/cordova-plugin-device/index.html"
+    "latest/cordova/device/device.uuid.html": 
"latest/reference/cordova-plugin-device/index.html"
+    "latest/cordova/device/device.version.html": 
"latest/reference/cordova-plugin-device/index.html"
+
+    "latest/cordova/file/directoryentry/directoryentry.html": 
"latest/reference/cordova-plugin-file/index.html"
+    "latest/cordova/file/directoryreader/directoryreader.html": 
"latest/reference/cordova-plugin-file/index.html"
+    "latest/cordova/file/file.html": 
"latest/reference/cordova-plugin-file/index.html"
+    "latest/cordova/file/fileentry/fileentry.html": 
"latest/reference/cordova-plugin-file/index.html"
+    "latest/cordova/file/fileerror/fileerror.html": 
"latest/reference/cordova-plugin-file/index.html"
+    "latest/cordova/file/fileobj/fileobj.html": 
"latest/reference/cordova-plugin-file/index.html"
+    "latest/cordova/file/filereader/filereader.html": 
"latest/reference/cordova-plugin-file/index.html"
+    "latest/cordova/file/filesystem/filesystem.html": 
"latest/reference/cordova-plugin-file/index.html"
+    "latest/cordova/file/filewriter/filewriter.html": 
"latest/reference/cordova-plugin-file/index.html"
+    "latest/cordova/file/flags/flags.html": 
"latest/reference/cordova-plugin-file/index.html"
+    "latest/cordova/file/localfilesystem/localfilesystem.html": 
"latest/reference/cordova-plugin-file/index.html"
+    "latest/cordova/file/metadata/metadata.html": 
"latest/reference/cordova-plugin-file/index.html"
+
+    "latest/cordova/file/filetransfer/filetransfer.html": 
"latest/reference/cordova-plugin-file-transfer/index.html"
+    "latest/cordova/file/filetransfererror/filetransfererror.html": 
"latest/reference/cordova-plugin-file-transfer/index.html"
+    "latest/cordova/file/fileuploadoptions/fileuploadoptions.html": 
"latest/reference/cordova-plugin-file-transfer/index.html"
+    "latest/cordova/file/fileuploadresult/fileuploadresult.html": 
"latest/reference/cordova-plugin-file-transfer/index.html"
+
+    "latest/cordova/geolocation/Coordinates/coordinates.html": 
"latest/reference/cordova-plugin-geolocation/index.html"
+    "latest/cordova/geolocation/geolocation.clearWatch.html": 
"latest/reference/cordova-plugin-geolocation/index.html"
+    "latest/cordova/geolocation/geolocation.getCurrentPosition.html": 
"latest/reference/cordova-plugin-geolocation/index.html"
+    "latest/cordova/geolocation/geolocation.html": 
"latest/reference/cordova-plugin-geolocation/index.html"
+    "latest/cordova/geolocation/geolocation.watchPosition.html": 
"latest/reference/cordova-plugin-geolocation/index.html"
+    "latest/cordova/geolocation/parameters/geolocation.options.html": 
"latest/reference/cordova-plugin-geolocation/index.html"
+    "latest/cordova/geolocation/parameters/geolocationError.html": 
"latest/reference/cordova-plugin-geolocation/index.html"
+    "latest/cordova/geolocation/parameters/geolocationSuccess.html": 
"latest/reference/cordova-plugin-geolocation/index.html"
+    "latest/cordova/geolocation/Position/position.html": 
"latest/reference/cordova-plugin-geolocation/index.html"
+    "latest/cordova/geolocation/PositionError/positionError.html": 
"latest/reference/cordova-plugin-geolocation/index.html"
+
+    "latest/cordova/globalization/globalization.dateToString.html": 
"latest/reference/cordova-plugin-globalization/index.html"
+    "latest/cordova/globalization/globalization.getCurrencyPattern.html": 
"latest/reference/cordova-plugin-globalization/index.html"
+    "latest/cordova/globalization/globalization.getDateNames.html": 
"latest/reference/cordova-plugin-globalization/index.html"
+    "latest/cordova/globalization/globalization.getDatePattern.html": 
"latest/reference/cordova-plugin-globalization/index.html"
+    "latest/cordova/globalization/globalization.getFirstDayOfWeek.html": 
"latest/reference/cordova-plugin-globalization/index.html"
+    "latest/cordova/globalization/globalization.getLocaleName.html": 
"latest/reference/cordova-plugin-globalization/index.html"
+    "latest/cordova/globalization/globalization.getNumberPattern.html": 
"latest/reference/cordova-plugin-globalization/index.html"
+    "latest/cordova/globalization/globalization.getPreferredLanguage.html": 
"latest/reference/cordova-plugin-globalization/index.html"
+    "latest/cordova/globalization/globalization.isDayLightSavingsTime.html": 
"latest/reference/cordova-plugin-globalization/index.html"
+    "latest/cordova/globalization/globalization.html": 
"latest/reference/cordova-plugin-globalization/index.html"
+    "latest/cordova/globalization/globalization.numberToString.html": 
"latest/reference/cordova-plugin-globalization/index.html"
+    "latest/cordova/globalization/globalization.stringToDate.html": 
"latest/reference/cordova-plugin-globalization/index.html"
+    "latest/cordova/globalization/globalization.stringToNumber.html": 
"latest/reference/cordova-plugin-globalization/index.html"
+    "latest/cordova/globalization/GlobalizationError/globalizationerror.html": 
"latest/reference/cordova-plugin-globalization/index.html"
+
+    "latest/cordova/inappbrowser/inappbrowser.html": 
"latest/reference/cordova-plugin-inappbrowser/index.html"
+    "latest/cordova/inappbrowser/window.open.html": 
"latest/reference/cordova-plugin-inappbrowser/index.html"
+
+    "latest/cordova/media/capture/capture.html": 
"latest/reference/cordova-plugin-media-capture/index.html"
+    "latest/cordova/media/capture/captureAudio.html": 
"latest/reference/cordova-plugin-media-capture/index.html"
+    "latest/cordova/media/capture/captureAudioOptions.html": 
"latest/reference/cordova-plugin-media-capture/index.html"
+    "latest/cordova/media/capture/CaptureCB.html": 
"latest/reference/cordova-plugin-media-capture/index.html"
+    "latest/cordova/media/capture/CaptureError.html": 
"latest/reference/cordova-plugin-media-capture/index.html"
+    "latest/cordova/media/capture/CaptureErrorCB.html": 
"latest/reference/cordova-plugin-media-capture/index.html"
+    "latest/cordova/media/capture/captureImage.html": 
"latest/reference/cordova-plugin-media-capture/index.html"
+    "latest/cordova/media/capture/captureImageOptions.html": 
"latest/reference/cordova-plugin-media-capture/index.html"
+    "latest/cordova/media/capture/captureVideo.html": 
"latest/reference/cordova-plugin-media-capture/index.html"
+    "latest/cordova/media/capture/captureVideoOptions.html": 
"latest/reference/cordova-plugin-media-capture/index.html"
+    "latest/cordova/media/capture/ConfigurationData.html": 
"latest/reference/cordova-plugin-media-capture/index.html"
+    "latest/cordova/media/capture/MediaFile.getFormatData.html": 
"latest/reference/cordova-plugin-media-capture/index.html"
+    "latest/cordova/media/capture/MediaFile.html": 
"latest/reference/cordova-plugin-media-capture/index.html"
+    "latest/cordova/media/capture/MediaFileData.html": 
"latest/reference/cordova-plugin-media-capture/index.html"
+
+    "latest/cordova/media/media.getCurrentPosition.html": 
"latest/reference/cordova-plugin-media/index.html"
+    "latest/cordova/media/media.getDuration.html": 
"latest/reference/cordova-plugin-media/index.html"
+    "latest/cordova/media/media.html": 
"latest/reference/cordova-plugin-media/index.html"
+    "latest/cordova/media/media.pause.html": 
"latest/reference/cordova-plugin-media/index.html"
+    "latest/cordova/media/media.play.html": 
"latest/reference/cordova-plugin-media/index.html"
+    "latest/cordova/media/media.release.html": 
"latest/reference/cordova-plugin-media/index.html"
+    "latest/cordova/media/media.seekTo.html": 
"latest/reference/cordova-plugin-media/index.html"
+    "latest/cordova/media/media.setVolume.html": 
"latest/reference/cordova-plugin-media/index.html"
+    "latest/cordova/media/media.startRecord.html": 
"latest/reference/cordova-plugin-media/index.html"
+    "latest/cordova/media/media.stop.html": 
"latest/reference/cordova-plugin-media/index.html"
+    "latest/cordova/media/media.stopRecord.html": 
"latest/reference/cordova-plugin-media/index.html"
+    "latest/cordova/media/MediaError/mediaError.html": 
"latest/reference/cordova-plugin-media/index.html"
+    "latest/cordova/media/Parameters/mediaError.html": 
"latest/reference/cordova-plugin-media/index.html"
+
+    "latest/cordova/notification/notification.alert.html": 
"latest/reference/cordova-plugin-dialogs/index.html"
+    "latest/cordova/notification/notification.beep.html": 
"latest/reference/cordova-plugin-dialogs/index.html"
+    "latest/cordova/notification/notification.confirm.html": 
"latest/reference/cordova-plugin-dialogs/index.html"
+    "latest/cordova/notification/notification.html": 
"latest/reference/cordova-plugin-dialogs/index.html"
+    "latest/cordova/notification/notification.prompt.html": 
"latest/reference/cordova-plugin-dialogs/index.html"
+    "latest/cordova/notification/notification.vibrate.html": 
"latest/reference/cordova-plugin-dialogs/index.html"
+
+    "latest/cordova/splashscreen/splashscreen.hide.html": 
"latest/reference/cordova-plugin-splashscreen/index.html"
+    "latest/cordova/splashscreen/splashscreen.html": 
"latest/reference/cordova-plugin-splashscreen/index.html"
+    "latest/cordova/splashscreen/splashscreen.show.html": 
"latest/reference/cordova-plugin-splashscreen/index.html"
+
+    "latest/phonegap/accelerometer/acceleration/acceleration.html": 
"latest/reference/cordova-plugin-device-motion/index.html"
+    "latest/phonegap/accelerometer/accelerometer.clearWatch.html": 
"latest/reference/cordova-plugin-device-motion/index.html"
+    "latest/phonegap/accelerometer/accelerometer.getCurrentAcceleration.html": 
"latest/reference/cordova-plugin-device-motion/index.html"
+    "latest/phonegap/accelerometer/accelerometer.html": 
"latest/reference/cordova-plugin-device-motion/index.html"
+    "latest/phonegap/accelerometer/accelerometer.watchAcceleration.html": 
"latest/reference/cordova-plugin-device-motion/index.html"
+    "latest/phonegap/accelerometer/parameters/accelerometerError.html": 
"latest/reference/cordova-plugin-device-motion/index.html"
+    "latest/phonegap/accelerometer/parameters/accelerometerOptions.html": 
"latest/reference/cordova-plugin-device-motion/index.html"
+    "latest/phonegap/accelerometer/parameters/accelerometerSuccess.html": 
"latest/reference/cordova-plugin-device-motion/index.html"
+
+    "latest/phonegap/camera/camera.getPicture.html": 
"latest/reference/cordova-plugin-camera/index.html"
+    "latest/phonegap/camera/camera.html": 
"latest/reference/cordova-plugin-camera/index.html"
+    "latest/phonegap/camera/parameter/cameraError.html": 
"latest/reference/cordova-plugin-camera/index.html"
+    "latest/phonegap/camera/parameter/cameraOptions.html": 
"latest/reference/cordova-plugin-camera/index.html"
+    "latest/phonegap/camera/parameter/cameraSuccess.html": 
"latest/reference/cordova-plugin-camera/index.html"
+
+    "latest/phonegap/compass/compass.clearWatch.html": 
"latest/reference/cordova-plugin-device-orientation/index.html"
+    "latest/phonegap/compass/compass.clearWatchFilter.html": 
"latest/reference/cordova-plugin-device-orientation/index.html"
+    "latest/phonegap/compass/compass.getCurrentHeading.html": 
"latest/reference/cordova-plugin-device-orientation/index.html"
+    "latest/phonegap/compass/compass.html": 
"latest/reference/cordova-plugin-device-orientation/index.html"
+    "latest/phonegap/compass/compass.watchHeading.html": 
"latest/reference/cordova-plugin-device-orientation/index.html"
+    "latest/phonegap/compass/compass.watchHeadingFilter.html": 
"latest/reference/cordova-plugin-device-orientation/index.html"
+    "latest/phonegap/compass/compassError/compassError.html": 
"latest/reference/cordova-plugin-device-orientation/index.html"
+    "latest/phonegap/compass/parameters/compassError.html": 
"latest/reference/cordova-plugin-device-orientation/index.html"
+    "latest/phonegap/compass/parameters/compassHeading.html": 
"latest/reference/cordova-plugin-device-orientation/index.html"
+    "latest/phonegap/compass/parameters/compassOptions.html": 
"latest/reference/cordova-plugin-device-orientation/index.html"
+    "latest/phonegap/compass/parameters/compassSuccess.html": 
"latest/reference/cordova-plugin-device-orientation/index.html"
+
+    "latest/phonegap/connection/connection.html": 
"latest/reference/cordova-plugin-network-information/index.html"
+    "latest/phonegap/connection/connection.type.html": 
"latest/reference/cordova-plugin-network-information/index.html"
+
+    "latest/phonegap/contacts/Contact/contact.html": 
"latest/reference/cordova-plugin-contacts/index.html"
+    "latest/phonegap/contacts/ContactAddress/contactaddress.html": 
"latest/reference/cordova-plugin-contacts/index.html"
+    "latest/phonegap/contacts/ContactError/contactError.html": 
"latest/reference/cordova-plugin-contacts/index.html"
+    "latest/phonegap/contacts/ContactField/contactfield.html": 
"latest/reference/cordova-plugin-contacts/index.html"
+    "latest/phonegap/contacts/ContactFindOptions/contactfindoptions.html": 
"latest/reference/cordova-plugin-contacts/index.html"
+    "latest/phonegap/contacts/ContactName/contactname.html": 
"latest/reference/cordova-plugin-contacts/index.html"
+    "latest/phonegap/contacts/ContactOrganization/contactorganization.html": 
"latest/reference/cordova-plugin-contacts/index.html"
+    "latest/phonegap/contacts/contacts.create.html": 
"latest/reference/cordova-plugin-contacts/index.html"
+    "latest/phonegap/contacts/contacts.find.html": 
"latest/reference/cordova-plugin-contacts/index.html"
+    "latest/phonegap/contacts/contacts.html": 
"latest/reference/cordova-plugin-contacts/index.html"
+    "latest/phonegap/contacts/parameters/contactError.html": 
"latest/reference/cordova-plugin-contacts/index.html"
+    "latest/phonegap/contacts/parameters/contactFields.html": 
"latest/reference/cordova-plugin-contacts/index.html"
+    "latest/phonegap/contacts/parameters/contactFindOptions.html": 
"latest/reference/cordova-plugin-contacts/index.html"
+    "latest/phonegap/contacts/parameters/contactSuccess.html": 
"latest/reference/cordova-plugin-contacts/index.html"
+
+    "latest/phonegap/device/device.html": 
"latest/reference/cordova-plugin-device/index.html"
+    "latest/phonegap/device/device.name.html": 
"latest/reference/cordova-plugin-device/index.html"
+    "latest/phonegap/device/device.phonegap.html": 
"latest/reference/cordova-plugin-device/index.html"
+    "latest/phonegap/device/device.platform.html": 
"latest/reference/cordova-plugin-device/index.html"
+    "latest/phonegap/device/device.uuid.html": 
"latest/reference/cordova-plugin-device/index.html"
+    "latest/phonegap/device/device.version.html": 
"latest/reference/cordova-plugin-device/index.html"
+
+    "latest/phonegap/file/directoryentry/directoryentry.html": 
"latest/reference/cordova-plugin-file/index.html"
+    "latest/phonegap/file/directoryreader/directoryreader.html": 
"latest/reference/cordova-plugin-file/index.html"
+    "latest/phonegap/file/file.html": 
"latest/reference/cordova-plugin-file/index.html"
+    "latest/phonegap/file/fileentry/fileentry.html": 
"latest/reference/cordova-plugin-file/index.html"
+    "latest/phonegap/file/fileerror/fileerror.html": 
"latest/reference/cordova-plugin-file/index.html"
+    "latest/phonegap/file/fileobj/fileobj.html": 
"latest/reference/cordova-plugin-file/index.html"
+    "latest/phonegap/file/filereader/filereader.html": 
"latest/reference/cordova-plugin-file/index.html"
+    "latest/phonegap/file/filesystem/filesystem.html": 
"latest/reference/cordova-plugin-file/index.html"
+    "latest/phonegap/file/filewriter/filewriter.html": 
"latest/reference/cordova-plugin-file/index.html"
+    "latest/phonegap/file/flags/flags.html": 
"latest/reference/cordova-plugin-file/index.html"
+    "latest/phonegap/file/localfilesystem/localfilesystem.html": 
"latest/reference/cordova-plugin-file/index.html"
+    "latest/phonegap/file/metadata/metadata.html": 
"latest/reference/cordova-plugin-file/index.html"
+
+    "latest/phonegap/file/filetransfer/filetransfer.html": 
"latest/reference/cordova-plugin-file-transfer/index.html"
+    "latest/phonegap/file/filetransfererror/filetransfererror.html": 
"latest/reference/cordova-plugin-file-transfer/index.html"
+    "latest/phonegap/file/fileuploadoptions/fileuploadoptions.html": 
"latest/reference/cordova-plugin-file-transfer/index.html"
+    "latest/phonegap/file/fileuploadresult/fileuploadresult.html": 
"latest/reference/cordova-plugin-file-transfer/index.html"
+
+    "latest/phonegap/geolocation/Coordinates/coordinates.html": 
"latest/reference/cordova-plugin-geolocation/index.html"
+    "latest/phonegap/geolocation/geolocation.clearWatch.html": 
"latest/reference/cordova-plugin-geolocation/index.html"
+    "latest/phonegap/geolocation/geolocation.getCurrentPosition.html": 
"latest/reference/cordova-plugin-geolocation/index.html"
+    "latest/phonegap/geolocation/geolocation.html": 
"latest/reference/cordova-plugin-geolocation/index.html"
+    "latest/phonegap/geolocation/geolocation.watchPosition.html": 
"latest/reference/cordova-plugin-geolocation/index.html"
+    "latest/phonegap/geolocation/parameters/geolocation.options.html": 
"latest/reference/cordova-plugin-geolocation/index.html"
+    "latest/phonegap/geolocation/parameters/geolocationError.html": 
"latest/reference/cordova-plugin-geolocation/index.html"
+    "latest/phonegap/geolocation/parameters/geolocationSuccess.html": 
"latest/reference/cordova-plugin-geolocation/index.html"
+    "latest/phonegap/geolocation/Position/position.html": 
"latest/reference/cordova-plugin-geolocation/index.html"
+    "latest/phonegap/geolocation/PositionError/positionError.html": 
"latest/reference/cordova-plugin-geolocation/index.html"
+
+    "latest/phonegap/media/capture/capture.html": 
"latest/reference/cordova-plugin-media-capture/index.html"
+    "latest/phonegap/media/capture/captureAudio.html": 
"latest/reference/cordova-plugin-media-capture/index.html"
+    "latest/phonegap/media/capture/captureAudioOptions.html": 
"latest/reference/cordova-plugin-media-capture/index.html"
+    "latest/phonegap/media/capture/CaptureCB.html": 
"latest/reference/cordova-plugin-media-capture/index.html"
+    "latest/phonegap/media/capture/CaptureError.html": 
"latest/reference/cordova-plugin-media-capture/index.html"
+    "latest/phonegap/media/capture/CaptureErrorCB.html": 
"latest/reference/cordova-plugin-media-capture/index.html"
+    "latest/phonegap/media/capture/captureImage.html": 
"latest/reference/cordova-plugin-media-capture/index.html"
+    "latest/phonegap/media/capture/captureImageOptions.html": 
"latest/reference/cordova-plugin-media-capture/index.html"
+    "latest/phonegap/media/capture/captureVideo.html": 
"latest/reference/cordova-plugin-media-capture/index.html"
+    "latest/phonegap/media/capture/captureVideoOptions.html": 
"latest/reference/cordova-plugin-media-capture/index.html"
+    "latest/phonegap/media/capture/ConfigurationData.html": 
"latest/reference/cordova-plugin-media-capture/index.html"
+    "latest/phonegap/media/capture/MediaFile.getFormatData.html": 
"latest/reference/cordova-plugin-media-capture/index.html"
+    "latest/phonegap/media/capture/MediaFile.html": 
"latest/reference/cordova-plugin-media-capture/index.html"
+    "latest/phonegap/media/capture/MediaFileData.html": 
"latest/reference/cordova-plugin-media-capture/index.html"
+
+    "latest/phonegap/media/media.getCurrentPosition.html": 
"latest/reference/cordova-plugin-media/index.html"
+    "latest/phonegap/media/media.getDuration.html": 
"latest/reference/cordova-plugin-media/index.html"
+    "latest/phonegap/media/media.html": 
"latest/reference/cordova-plugin-media/index.html"
+    "latest/phonegap/media/media.pause.html": 
"latest/reference/cordova-plugin-media/index.html"
+    "latest/phonegap/media/media.play.html": 
"latest/reference/cordova-plugin-media/index.html"
+    "latest/phonegap/media/media.release.html": 
"latest/reference/cordova-plugin-media/index.html"
+    "latest/phonegap/media/media.seekTo.html": 
"latest/reference/cordova-plugin-media/index.html"
+    "latest/phonegap/media/media.startRecord.html": 
"latest/reference/cordova-plugin-media/index.html"
+    "latest/phonegap/media/media.stop.html": 
"latest/reference/cordova-plugin-media/index.html"
+    "latest/phonegap/media/media.stopRecord.html": 
"latest/reference/cordova-plugin-media/index.html"
+    "latest/phonegap/media/MediaError/mediaError.html": 
"latest/reference/cordova-plugin-media/index.html"
+    "latest/phonegap/media/Parameters/mediaError.html": 
"latest/reference/cordova-plugin-media/index.html"
+
+    "latest/phonegap/notification/notification.alert.html": 
"latest/reference/cordova-plugin-dialogs/index.html"
+    "latest/phonegap/notification/notification.beep.html": 
"latest/reference/cordova-plugin-dialogs/index.html"
+    "latest/phonegap/notification/notification.confirm.html": 
"latest/reference/cordova-plugin-dialogs/index.html"
+    "latest/phonegap/notification/notification.html": 
"latest/reference/cordova-plugin-dialogs/index.html"
+    "latest/phonegap/notification/notification.vibrate.html": 
"latest/reference/cordova-plugin-dialogs/index.html"
+
     # NOTE:
     #      these only need to be done for /latest, since they only existed in 
/latest and they don't exist anywhere anymore
     "latest/cordova-cli/index.html": "latest/reference/cordova-cli/index.html"

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/d0f44465/www/_includes/head.html
----------------------------------------------------------------------
diff --git a/www/_includes/head.html b/www/_includes/head.html
index 148b4d4..21a2856 100644
--- a/www/_includes/head.html
+++ b/www/_includes/head.html
@@ -19,7 +19,21 @@
     </title>
 
     <link rel="SHORTCUT ICON" href="{{ site.baseurl }}/favicon.ico"/>
-    <link rel="canonical" href="{{ site.url }}{{ site.baseurl }}{{ page.url | 
replace:'index.html','' }}">
+
+    {% capture canonical_link %}{{ site.url }}{{ site.baseurl }}{{ page.url | 
replace:'index.html','' }}{% endcapture %}
+
+    {% comment %}
+    Canonical link for docs pages should point to the latest version of the 
page
+    {% endcomment %}
+    {% if page.version %}
+        {% capture latest_url %}{{ page.url | replace_first: page.version, 
'latest' }}{% endcapture %}
+
+        {% if site.data.all-pages contains latest_url %}
+            {% capture canonical_link %}{{ canonical_link | replace_first: 
page.version, 'latest' }}{% endcapture %}
+        {% endif %}
+    {% endif %}
+
+    <link rel="canonical" href="{{ canonical_link }}">
 
     <!-- CSS -->
     <link rel="stylesheet" type="text/css" href="{{ site.baseurl 
}}/static/css/main.css">


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org
For additional commands, e-mail: commits-h...@cordova.apache.org

Reply via email to