From 3728bd68ee6c1914a644721ae60f7f4d61ccebcc Mon Sep 17 00:00:00 2001 From: Steve Rydz Date: Wed, 6 Nov 2019 14:20:36 +0000 Subject: [PATCH] Fix broken links in network tab --- legacy/src/app/directives/dhcp_snippets_table.js | 6 +++++- legacy/src/app/partials/dhcp-snippets-table.html | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/legacy/src/app/directives/dhcp_snippets_table.js b/legacy/src/app/directives/dhcp_snippets_table.js index be6527597a..24d1f16d51 100644 --- a/legacy/src/app/directives/dhcp_snippets_table.js +++ b/legacy/src/app/directives/dhcp_snippets_table.js @@ -17,7 +17,11 @@ function maasDhcpSnippetsTable($window) { hideAllSnippetsLink: "=" }, template: dhcpSnippetsTableTmpl, - controller: DHCPSnippetsTableController + controller: DHCPSnippetsTableController, + link: scope => { + scope.BASENAME = process.env.BASENAME; + scope.REACT_BASENAME = process.env.REACT_BASENAME; + } }; } diff --git a/legacy/src/app/partials/dhcp-snippets-table.html b/legacy/src/app/partials/dhcp-snippets-table.html index c99b5a44c1..f149468ff7 100644 --- a/legacy/src/app/partials/dhcp-snippets-table.html +++ b/legacy/src/app/partials/dhcp-snippets-table.html @@ -192,11 +192,11 @@

Adding snippet

\ No newline at end of file +