| Index: appengine/chromium_rietveld/codereview/views.py
|
| diff --git a/appengine/chromium_rietveld/codereview/views.py b/appengine/chromium_rietveld/codereview/views.py
|
| index 74a44dcebc6e0c54db59247ac648dd3eb28eaefe..58cb5d3e292428eaebd0675b82ee011f1f3331c4 100644
|
| --- a/appengine/chromium_rietveld/codereview/views.py
|
| +++ b/appengine/chromium_rietveld/codereview/views.py
|
| @@ -78,6 +78,7 @@ from oauth2client import xsrfutil
|
|
|
| from codereview import auth_utils
|
| from codereview import buildbucket
|
| +from codereview import common
|
| from codereview import engine
|
| from codereview import library
|
| from codereview import models
|
| @@ -4149,9 +4150,7 @@ def _process_incoming_mail(raw_message, recipients):
|
| def _absolute_url_in_preferred_domain(handler, args=None):
|
| """Return a URL for handler via our preferred domain name, if possible."""
|
| handler_url_path = reverse(handler, args=args)
|
| - app_id = app_identity.get_application_id()
|
| - canonical_host = '%s.appspot.com' % app_id
|
| - host = django_settings.PREFERRED_DOMAIN_NAMES.get(app_id, canonical_host)
|
| + host = common.get_preferred_domain_name()
|
| return 'https://%s%s' % (host, handler_url_path)
|
|
|
|
|
|
|