web: set noopener and noreferrer on all external links (#10304)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
		| @ -208,7 +208,14 @@ export class AdminOverviewPage extends AdminOverviewBase { | ||||
|  | ||||
|             return html`<li> | ||||
|                 ${ex( | ||||
|                     () => html`<a href="${url}" class="pf-u-mb-xl" target="_blank">${content}</a>`, | ||||
|                     () => | ||||
|                         html`<a | ||||
|                             href="${url}" | ||||
|                             class="pf-u-mb-xl" | ||||
|                             rel="noopener noreferrer" | ||||
|                             target="_blank" | ||||
|                             >${content}</a | ||||
|                         >`, | ||||
|                     () => html`<a href="${url}" class="pf-u-mb-xl" )>${content}</a>`, | ||||
|                 )} | ||||
|             </li>`; | ||||
|  | ||||
| @ -56,6 +56,6 @@ export class VersionStatusCard extends AdminStatusCard<Version> { | ||||
|             text = this.value.buildHash?.substring(0, 7); | ||||
|             link = `https://github.com/goauthentik/authentik/commit/${this.value.buildHash}`; | ||||
|         } | ||||
|         return html`<a href=${link} target="_blank">${text}</a>`; | ||||
|         return html`<a rel="noopener noreferrer" href=${link} target="_blank">${text}</a>`; | ||||
|     } | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens L
					Jens L