docsify icon indicating copy to clipboard operation
docsify copied to clipboard

Search not work with relativePath and routerMode hash

Open rottmann opened this issue 3 years ago • 1 comments

Steps to reproduce

Config:

relativePath: true
routerMode: hash
basePath: /

Open a doc http://localhost:3000/#/

What is current behaviour

Error:

docsify.js:466 Uncaught TypeError: Cannot read properties of undefined (reading 'substring')
    at HashHistory.toURL (docsify.js:466:37)
    at HashHistory.toURL (docsify.js:579:44)
    at search.js:142:25
    at Array.forEach (<anonymous>)
    at genIndex (search.js:133:12)
    at search.js:348:26
    at XMLHttpRequest.<anonymous> (docsify.js:2264:13)

rottmann avatar Mar 04 '22 16:03 rottmann

Hi, I make the same config but it works fine. Could provide more details about it, may be in the sandbox?

Koooooo-7 avatar Mar 20 '22 09:03 Koooooo-7