diff --git a/platypush/backend/http/webapp/src/components/panels/Extensions/Doc.vue b/platypush/backend/http/webapp/src/components/panels/Extensions/Doc.vue index fc86c506e..58325d4e8 100644 --- a/platypush/backend/http/webapp/src/components/panels/Extensions/Doc.vue +++ b/platypush/backend/http/webapp/src/components/panels/Extensions/Doc.vue @@ -20,8 +20,8 @@ @@ -36,7 +36,7 @@ @@ -62,6 +62,7 @@ export default { data() { return { doc: null, + localPageRegex: new RegExp('^/?#.*$'), } }, @@ -102,6 +103,11 @@ export default { if (!href) return true + if (href.match(this.localPageRegex)) { + window.location.href = href + return true + } + const match = href.match(/^https:\/\/docs\.platypush\.tech\/platypush\/(plugins|backend)\/([\w.]+)\.html#?.*$/) if (!match) { event.preventDefault() @@ -176,8 +182,15 @@ section { margin: 0; li { + width: 100%; + display: block; margin: 0.5em 0; list-style: none; + + a { + width: 100%; + display: block; + } } }