Skip to content

Commit

Permalink
Send .compact traffic to m.reddit.com instead of h.reddit.com.
Browse files Browse the repository at this point in the history
  • Loading branch information
kjoconnor committed Jun 20, 2016
1 parent d43d7f9 commit dc50148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r2/r2/templates/mobilewebredirectbar.compact
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
def mobile_web_url():
url = request.environ['FULLPATH']
scheme, netloc, path, query, fragment = urlparse.urlsplit(url)
netloc = "%s.%s" % ('h', g.domain)
netloc = "%s.%s" % ('m', g.domain)
path = path.replace('.compact', '')
return urlparse.urlunsplit((None, netloc, path, query, fragment))
%>
Expand Down

0 comments on commit dc50148

Please sign in to comment.