Use url_for for requests form links

This commit is contained in:
richard-dds 2018-08-06 16:21:55 -04:00
parent 19a072d67e
commit 83c1cc8584
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@
icon="document", icon="document",
active=g.matchesPath('/requests'), active=g.matchesPath('/requests'),
subnav=[ 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')) }} {{ SidenavItem("Workspaces", href="/workspaces", icon="cloud", active=g.matchesPath('/workspaces')) }}

View File

@ -40,7 +40,7 @@
{{ EmptyState( {{ EmptyState(
'There are currently no active requests for you to see.', 'There are currently no active requests for you to see.',
actionLabel='Create a new JEDI Cloud Request', actionLabel='Create a new JEDI Cloud Request',
actionHref='/requests/new', actionHref=url_for('requests.requests_form_new', screen=1),
icon='document' icon='document'
) }} ) }}