Switch to side-by-side view

--- a/ForgeHg/forgehg/model/hg.py
+++ b/ForgeHg/forgehg/model/hg.py
@@ -200,7 +200,7 @@
         'Set up the hg changegroup hook'
         text = self.post_receive_template.substitute(
             url=tg.config.get('base_url', 'localhost:8080')
-            + self._repo.url()[1:] + 'refresh')
+            + '/auth/refresh_repo' + self._repo.url())
         fn = os.path.join(self._repo.fs_path, self._repo.name, '.hg', 'hgrc')
         with open(fn, 'ab') as fp:
             fp.write(text)