Hi,
I'm trying to create a filtered FAQ page in Django. It filters by three categories, and defaults to 'all' for all three when someone hits the root URL. From urls.py:
keywords = ('key1','key2','key3')
searchurl = r'^category1/(?P<%s>\w{1,50})/category2/(?P<%s>\w{1,50})/category3/(?P<%s>\w{1,50})/$' % keywords
searchall = dict(zip(keywords,['all']*len(keywords)))
urlpatterns = patterns('my.path.views',
url(searchurl, 'faq', name='search_view'),
)
urlpatterns += patterns('django.views.generic.simple',
url(r'^$', 'redirect_to', {'url': searchurl, 'kwargs': searchall}, name='default_search'),
)
This has all been working fine in my testing in Safari. However, when I tried it in Firefox, navigating to the root URL returned a Page Not Found error. It had re-directed to "root/^category1/(/", as if the regular expression had been passed as a URL and everything after the first ? was interpreted as a query string. Any idea what might be causing this?
Thanks!