Skip to content

Search not work with relativePath and routerMode hash #1764

Open
@rottmann

Description

@rottmann

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions