From 83c1cc858431dfb3693564af048466e4c6e00df0 Mon Sep 17 00:00:00 2001 From: richard-dds Date: Mon, 6 Aug 2018 16:21:55 -0400 Subject: [PATCH] Use url_for for requests form links --- templates/navigation/global_navigation.html | 2 +- templates/requests.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/navigation/global_navigation.html b/templates/navigation/global_navigation.html index 6255e604..b2311665 100644 --- a/templates/navigation/global_navigation.html +++ b/templates/navigation/global_navigation.html @@ -18,7 +18,7 @@ icon="document", active=g.matchesPath('/requests'), subnav=[ - {"label":"New Request", "href":"/requests/new/1", "icon": "plus", "active": g.matchesPath('/requests/new')}, + {"label":"New Request", "href":url_for("requests.requests_form_new", screen=1), "icon": "plus", "active": g.matchesPath('/requests/new')}, ] ) }} {{ SidenavItem("Workspaces", href="/workspaces", icon="cloud", active=g.matchesPath('/workspaces')) }} diff --git a/templates/requests.html b/templates/requests.html index 288520ff..17993dfa 100644 --- a/templates/requests.html +++ b/templates/requests.html @@ -40,7 +40,7 @@ {{ EmptyState( 'There are currently no active requests for you to see.', actionLabel='Create a new JEDI Cloud Request', - actionHref='/requests/new', + actionHref=url_for('requests.requests_form_new', screen=1), icon='document' ) }}