diff --git a/config/jsdoc/api/template/static/scripts/main.js b/config/jsdoc/api/template/static/scripts/main.js
index f08f17ac67..f050997bf1 100644
--- a/config/jsdoc/api/template/static/scripts/main.js
+++ b/config/jsdoc/api/template/static/scripts/main.js
@@ -74,7 +74,7 @@ $(function () {
var stabilityToggle = $('#stability-toggle');
stabilityToggle.change(function() {
unstable.toggleClass('hidden', this.checked);
- var search = this.checked ? '' : '?unstable=true';
+ var search = this.checked ? '?stable=true' : '';
links.each(function(i, el) {
this.href = this.pathname + search + this.hash;
});
@@ -88,6 +88,6 @@ $(function () {
links.each(function(i, el) {
this.href = this.pathname + search + this.hash;
});
- stabilityToggle.prop('checked', search !== '?unstable=true');
+ stabilityToggle.prop('checked', search === '?stable=true');
unstable.toggleClass('hidden', stabilityToggle[0].checked);
});
diff --git a/config/jsdoc/api/template/tmpl/layout.tmpl b/config/jsdoc/api/template/tmpl/layout.tmpl
index 5e1789e190..243743e719 100644
--- a/config/jsdoc/api/template/tmpl/layout.tmpl
+++ b/config/jsdoc/api/template/tmpl/layout.tmpl
@@ -21,7 +21,7 @@
OpenLayers 3
API Documentation