getgrav / getgrav/grav-plugin-simplesearch

forward slash in query string causes Error 404

Open
#79 5 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
PHP
Stars
46
Forks
55
Avg merge
5h 44m
Merged PRs (30d)
1

Description

Grav allows taxonomy terms to contain forward slashes.

For example, the `AC/DC` in:

```yaml
title: Back in Black
taxonomy:
genre: Rock
artist: AC/DC

---
```

However, when processing a search query that contains a forward slash, Grav displays an **Error 404** page. For example:

![screen shot 2016-11-02 at 1 39 31 pm](https://cloud.githubusercontent.com/assets/7143133/19946586/cf436d40-a101-11e6-82ba-722a5a259054.png)

Here is the URL of that page on the Grav Blog Skeleton demo site:
https://demo.getgrav.org/blog-skeleton/search/query:AC/DC

For comparison, when processing a search query that does *not* contain a forward slash (but still doesn't match any pages), Grav displays a **"found 0 results"** page. For example:

![screen shot 2016-11-02 at 1 41 11 pm](https://cloud.githubusercontent.com/assets/7143133/19946662/0e44c584-a102-11e6-833b-b1247f4ef951.png)

Here is the URL of that page on the Grav Blog Skeleton demo site:
https://demo.getgrav.org/blog-skeleton/search/query:ACDC

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.