summaryrefslogtreecommitdiffstats
path: root/askbot/urls.py
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-04-23 21:36:57 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-04-23 21:36:57 -0400
commitc434f8f341487e98a70d0f4faac801a691590748 (patch)
treecdeb2de5d0a9a960ca00055e3fba89462783d557 /askbot/urls.py
parentb2c21e00e4155480d18f00c9e44e4a9e96ad1604 (diff)
downloadaskbot-c434f8f341487e98a70d0f4faac801a691590748.tar.gz
askbot-c434f8f341487e98a70d0f4faac801a691590748.tar.bz2
askbot-c434f8f341487e98a70d0f4faac801a691590748.zip
fixed the slash in the search query bug
Diffstat (limited to 'askbot/urls.py')
-rw-r--r--askbot/urls.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/askbot/urls.py b/askbot/urls.py
index a8eebf95..d3426980 100644
--- a/askbot/urls.py
+++ b/askbot/urls.py
@@ -62,10 +62,10 @@ urlpatterns = patterns('',
(r'^%s' % _('questions') +
r'(%s)?' % r'/scope:(?P<scope>\w+)' +
r'(%s)?' % r'/sort:(?P<sort>[\w\-]+)' +
- r'(%s)?' % r'/query:(?P<query>[^/]+)' + # INFO: question string cannot contain slash (/), which is a section terminator
r'(%s)?' % r'/tags:(?P<tags>[\w+.#,-]+)' + # Should match: const.TAG_CHARS + ','; TODO: Is `#` char decoded by the time URLs are processed ??
r'(%s)?' % r'/author:(?P<author>\d+)' +
r'(%s)?' % r'/page:(?P<page>\d+)' +
+ r'(%s)?' % r'/query:(?P<query>.+)' + # INFO: query is last, b/c it can contain slash!!!
r'/$'),
views.readers.questions,
name='questions'