diff --git a/reviewboard/webapi/resources/hosting_service.py b/reviewboard/webapi/resources/hosting_service.py
index 3a86fafdd450631f606eeb2e55c001fb04af16b0..dc1b4b0f093bab4589d99ebe4d1cc0b97c33c4fe 100644
--- a/reviewboard/webapi/resources/hosting_service.py
+++ b/reviewboard/webapi/resources/hosting_service.py
@@ -92,13 +92,23 @@ class HostingServiceResource(WebAPIResource):
 
             accounts_url = resources.hosting_service_account.get_list_url(
                 local_site_name=request._local_site_name)
+            repos_url = resources.repository.get_list_url(
+                local_site_name=request._local_site_name)
 
-            links['accounts'] = {
-                'method': 'GET',
-                'href': request.build_absolute_uri(
-                    '%s?service=%s' % (accounts_url, obj.id)
-                ),
-            }
+            links.update({
+                'accounts': {
+                    'method': 'GET',
+                    'href': request.build_absolute_uri(
+                        '%s?service=%s' % (accounts_url, obj.id)
+                    ),
+                },
+                'repositories': {
+                    'method': 'GET',
+                    'href': request.build_absolute_uri(
+                        '%s?hosting-service=%s' % (repos_url, obj.id)
+                    ),
+                }
+            })
 
         return links
 
diff --git a/reviewboard/webapi/tests/test_hosting_service.py b/reviewboard/webapi/tests/test_hosting_service.py
index a84f531474976453a0c2cef9cdb503ef8d972faf..c93bee7ab77ced9f71fa947cfb3f75e1bc730c31 100644
--- a/reviewboard/webapi/tests/test_hosting_service.py
+++ b/reviewboard/webapi/tests/test_hosting_service.py
@@ -27,18 +27,25 @@ def _compare_item(self, item_rsp, hosting_service):
     self.assertEqual(item_rsp['supported_scmtools'],
                      hosting_service.supported_scmtools)
 
-    # Check the links
-    self.assertIn('accounts', item_rsp['links'])
-    accounts_url = 'http://testserver/'
+    # Compute the base URL for links.
+    url_base = 'http://testserver/'
 
     if '/s/local-site-1/' in item_rsp['links']['self']['href']:
-        accounts_url += 's/local-site-1/'
+        url_base += 's/local-site-1/'
 
-    accounts_url += ('api/hosting-service-accounts/?service=%s'
-                     % hosting_service.id)
+    url_base += 'api/'
 
+    # Check the links.
+    accounts_url = url_base + ('hosting-service-accounts/?service=%s'
+                               % hosting_service.id)
+    self.assertIn('accounts', item_rsp['links'])
     self.assertEqual(item_rsp['links']['accounts']['href'], accounts_url)
 
+    accounts_url = url_base + ('repositories/?hosting-service=%s'
+                               % hosting_service.id)
+    self.assertIn('repositories', item_rsp['links'])
+    self.assertEqual(item_rsp['links']['repositories']['href'], accounts_url)
+
 
 @six.add_metaclass(BasicTestsMetaclass)
 class ResourceListTests(BaseWebAPITestCase):
