diff --git a/openstack_dashboard/dashboards/project/instances/tabs.py b/openstack_dashboard/dashboards/project/instances/tabs.py index fda79fd363..652888c982 100644 --- a/openstack_dashboard/dashboards/project/instances/tabs.py +++ b/openstack_dashboard/dashboards/project/instances/tabs.py @@ -13,6 +13,7 @@ # under the License. from django.conf import settings +from django.core.urlresolvers import reverse from django.utils.translation import ugettext_lazy as _ from horizon import exceptions @@ -74,7 +75,8 @@ class ConsoleTab(tabs.Tab): # For serial console, the url is different from VNC, etc. # because it does not include parms for title and token if console_type == "SERIAL": - console_url = "/project/instances/%s/serial" % (instance.id) + console_url = reverse('horizon:project:instances:serial', + args=[instance.id]) except exceptions.NotAvailable: exceptions.handle(request, ignore=True, force_log=True)