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 +