diff --git a/lib/components/Method/method.js b/lib/components/Method/method.js index 3fc287cb..89757c5f 100644 --- a/lib/components/Method/method.js +++ b/lib/components/Method/method.js @@ -32,7 +32,7 @@ export default class Method extends BaseComponent { if (this.componentSchema.operationId) { this.data.methodAnchor = 'operation/' + encodeURIComponent(this.componentSchema.operationId); } else { - this.data.methodAnchor = 'tag/' + this.tag + this.pointer; + this.data.methodAnchor = 'tag/' + encodeURIComponent(this.tag + this.pointer); } } diff --git a/package.json b/package.json index 589bd2ab..a20844cc 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "redoc", "description": "Swagger-generated API Reference Documentation", - "version": "0.6.4", + "version": "0.6.5", "repository": { "type": "git", "url": "git://github.com/Rebilly/ReDoc"