diff --git a/realms/modules/search/models.py b/realms/modules/search/models.py index 26bdc71..0dfa89f 100644 --- a/realms/modules/search/models.py +++ b/realms/modules/search/models.py @@ -40,7 +40,7 @@ class SimpleSearch(BaseSearch): res = [] for entry in g.current_wiki.get_index(): name = filename_to_cname(entry['name']) - if set(query.split()).intersection(name.split('-')): + if set(query.split()).intersection(name.replace('/', '-').split('-')): page = g.current_wiki.get_page(name) res.append(dict(name=name, content=page['data'])) return res