Exclude domain listings from not_in_sr routing test.

This prevents matching urls starting with /domain/something.com due to
the way our domain middleware works.
This commit is contained in:
Max Goodman
2013-04-10 21:05:38 -07:00
parent 430f3b6e06
commit 62bfccf441

View File

@@ -28,8 +28,9 @@ from pylons import config
def not_in_sr(environ, results):
return 'subreddit' not in environ and 'sub_domain' not in environ
return ('subreddit' not in environ and
'sub_domain' not in environ and
'domain' not in environ)
def make_map():
map = Mapper()