diff --git a/rhodecode/subscribers.py b/rhodecode/subscribers.py
--- a/rhodecode/subscribers.py
+++ b/rhodecode/subscribers.py
@@ -54,7 +54,6 @@ def add_renderer_globals(event):
# Put pylons stuff into the context. This will be removed as soon as
# migration to pyramid is finished.
event['c'] = pylons.tmpl_context
- event['url'] = pylons.url
# TODO: When executed in pyramid view context the request is not available
# in the event. Find a better solution to get the request.
diff --git a/rhodecode/templates/admin/defaults/defaults_repositories.mako b/rhodecode/templates/admin/defaults/defaults_repositories.mako
--- a/rhodecode/templates/admin/defaults/defaults_repositories.mako
+++ b/rhodecode/templates/admin/defaults/defaults_repositories.mako
@@ -3,7 +3,7 @@
- ${h.secure_form(url('admin_defaults_repositories'), method='post')}
+ ${h.secure_form(h.url('admin_defaults_repositories'), method='post')}
diff --git a/rhodecode/templates/admin/notifications/notifications.mako b/rhodecode/templates/admin/notifications/notifications.mako
--- a/rhodecode/templates/admin/notifications/notifications.mako
+++ b/rhodecode/templates/admin/notifications/notifications.mako
@@ -44,7 +44,7 @@
diff --git a/rhodecode/templates/forks/fork.mako b/rhodecode/templates/forks/fork.mako
--- a/rhodecode/templates/forks/fork.mako
+++ b/rhodecode/templates/forks/fork.mako
@@ -27,7 +27,7 @@
${self.breadcrumbs()}
- ${h.secure_form(url('repo_fork_create_home',repo_name=c.repo_info.repo_name))}
+ ${h.secure_form(h.url('repo_fork_create_home',repo_name=c.repo_info.repo_name))}