From 62bfccf4410d98ad695c73d54eda7f367d832999 Mon Sep 17 00:00:00 2001 From: Max Goodman Date: Wed, 10 Apr 2013 21:05:38 -0700 Subject: [PATCH] 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. --- r2/r2/config/routing.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/r2/r2/config/routing.py b/r2/r2/config/routing.py index 53a0a05b6..973811375 100644 --- a/r2/r2/config/routing.py +++ b/r2/r2/config/routing.py @@ -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()