diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index 7c9927c88..c7a9c55d5 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -2518,7 +2518,8 @@ INFO is a plist holding contextual information. See
(org-element-property :path link) option)))
(and numbers (concat "#sec-"
(mapconcat 'number-to-string
- numbers "-")))))))))
+ numbers "-"))))))
+ (t raw-path))))
(t raw-path)))
attributes protocol)
;; Extract attributes from parent's paragraph. HACK: Only do this