web: fix download button for SAML Metadata download

This commit is contained in:
Jens Langhammer 2021-02-16 21:04:03 +01:00
parent f8ba623fc1
commit baa2ed5ecc
2 changed files with 2 additions and 1 deletions

View File

@ -54,6 +54,7 @@ class MetadataImportView(LoginRequiredMixin, FormView):
form_class = SAMLProviderImportForm form_class = SAMLProviderImportForm
template_name = "providers/saml/import.html" template_name = "providers/saml/import.html"
success_url = ""
def dispatch(self, request, *args, **kwargs): def dispatch(self, request, *args, **kwargs):
if not request.user.is_superuser: if not request.user.is_superuser:

View File

@ -128,7 +128,7 @@ export class SAMLProviderViewPage extends Page {
)} )}
</div> </div>
<div class="pf-c-card__footer"> <div class="pf-c-card__footer">
<a class="pf-c-button pf-m-primary" target="_blank" href="${SAMLProvider.appUrl(`${this.provider.name}/metadata/`)}"> <a class="pf-c-button pf-m-primary" target="_blank" href="${SAMLProvider.appUrl(`${this.provider.assigned_application_slug}/metadata/`)}">
${gettext("Download")} ${gettext("Download")}
</a> </a>
</div> </div>