-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix broken links in network tab #412
Fix broken links in network tab #412
Conversation
@@ -192,11 +192,11 @@ <h2 data-ng-click="snippetAddCancel()" class="u-float--left">Adding snippet</h2> | |||
</div> | |||
<ul class="p-inline-list--middot"> | |||
<li class="p-inline-list__item" data-ng-if="!hideAllSnippetsLink"> | |||
<a href="/#/settings/dhcp">All snippets: Settings > DHCP snippets</a> | |||
<a href="/MAAS/r/settings/dhcp">All snippets: Settings > DHCP snippets</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to use the env vars here to add the "/MAAS" and "/r" parts? In ./legacy/.env there should be two variables:
BASENAME="/MAAS"
REACT_BASENAME="/r"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@huwshimi No, they don't work in the HTML templates
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind - I found a way :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for figuring that out! Looks great.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Done
Add correct
href
values for the links to DHCP snippet settings and DHCP snippets docs on the network tab of a machine detail page. Fixes #396 and #392.QA
/MAAS/#/machines
actual-swine.maas
qualifies)About DHCP snippets
link and see that you are taken to https://maas.io/docs/dhcp in a new tabAll snippets: Settings > DHCP snippets
link and see that you are taken to/MAAS/r/settings/dhcp