Skip to content

Commit

Permalink
Merge pull request #7 from endlessm/T33310-topic-node-search
Browse files Browse the repository at this point in the history
Do not include search terms in topic nodes from kolibri URLs
  • Loading branch information
Simon Schampijer authored Mar 24, 2022
2 parents f5fa056 + eeb2b3e commit 1f7579b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/kolibri_gnome/kolibri_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,10 @@ def parse_kolibri_url_tuple(self, url_tuple: SplitResult) -> str:
if node_type == "c":
return self._get_kolibri_content_path(node_id, url_search)
elif node_type == "t":
return self._get_kolibri_topic_path(node_id, url_search)
# As a special case, don't include the search property for topic
# nodes. This means Kolibri will always show a simple browsing
# interface for a topic, instead of a search interface.
return self._get_kolibri_topic_path(node_id, None)
else:
return self._get_kolibri_library_path(url_search)

Expand Down

0 comments on commit 1f7579b

Please sign in to comment.