diff --git a/adagios/context_processors.py b/adagios/context_processors.py
index 4b3c35e51..cd6309178 100644
--- a/adagios/context_processors.py
+++ b/adagios/context_processors.py
@@ -160,7 +160,7 @@ def resolve_urlname(request):
request is within the template"""
from django.core.urlresolvers import resolve
try:
- res = resolve(request.path)
+ res = resolve(request.path_info)
if res:
return {'urlname': res.url_name}
except Exception:
diff --git a/adagios/objectbrowser/templates/copy_object.html b/adagios/objectbrowser/templates/copy_object.html
index 8045b654c..c569a631e 100644
--- a/adagios/objectbrowser/templates/copy_object.html
+++ b/adagios/objectbrowser/templates/copy_object.html
@@ -14,17 +14,17 @@
{% trans "Success!" %}
- {% url edit_object i.id as the_url %}
- {% blocktrans with type=i.object_type desc=u.description file=i.filename %}
- {{ type }} "{{ desc }}" was successfully saved to {{ file }}.
- {% endblocktrans %}
+ {% url edit_object object.id as the_url %}
+ {% blocktrans with type=object.object_type desc=object.description file=object.filename %}
+ {{ type }} "{{ desc }}" was successfully saved to {{ file }}.
+ {% endblocktrans %}
{% endfor %}
{% else %}
- {% blocktrans with type=i.object_type desc=u.description %}
- You are about to copy {{ type }} "{{ desc }}".
- {% endblocktrans %}
+ {% blocktrans with type=object.object_type desc=object.description %}
+ You are about to copy {{ type }} "{{ desc }}".
+ {% endblocktrans %}