Skip to content

Quick navigation to pages with spaces in doesn't work #254

@csmith

Description

@csmith

The query selector here:

                        searchForm.addEventListener('submit', function (e) {
                          e.preventDefault()
                          if (searchList.querySelector('[value=' + searchInput.value + ']')) {
                            document.location.href = '/view/' + searchInput.value
                          } else {
                            document.location.href = '/wiki/search?pattern=' + searchInput.value
                          }
                        })

doesn't cope with spaces in the search term

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions