From 5c5fc3f89273eb56b6f4a4bdb69db7daf75a36b7 Mon Sep 17 00:00:00 2001 From: Roman Zoller Date: Fri, 21 Sep 2018 16:03:39 +0200 Subject: [PATCH] Fix assertion error documentation URL Prefix version number with 'v' to obtain correct URL. This fixes #8556. --- src/ol/AssertionError.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/AssertionError.js b/src/ol/AssertionError.js index f6df8887ea..0e49b0ee98 100644 --- a/src/ol/AssertionError.js +++ b/src/ol/AssertionError.js @@ -14,7 +14,7 @@ class AssertionError extends Error { * @param {number} code Error code. */ constructor(code) { - const path = VERSION.split('-')[0]; + const path = VERSION === 'latest' ? VERSION : 'v' + VERSION.split('-')[0]; const message = 'Assertion failed. See https://openlayers.org/en/' + path + '/doc/errors/#' + code + ' for details.';