Quellcode durchsuchen

Fix: Use template variable correctly. (#3578)

* fix(go): use template variable correctly;

* feat(go): update docs link.

* feat(go): update docs link.
Vishal Dalwadi vor 1 Monat
Ursprung
Commit
85c7da75d3
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 1 1
      pro/auth/error.go
  2. 2 2
      pro/auth/templates.go

+ 1 - 1
pro/auth/error.go

@@ -93,7 +93,7 @@ var htmlBaseTemplate = `<!DOCTYPE html>
 </html>`
 
 var oauthNotConfigured = fmt.Sprintf(htmlBaseTemplate, `<h2>Your Netmaker server does not have OAuth configured.</h2>
-<p>Please visit the docs <a href="https://docs.netmaker.io/docs/server-installation/identity-provider-integration-guide" target="_blank" rel="noopener">here</a> to learn how to.</p>`)
+<p>Please visit the docs <a href="https://docs.netmaker.io/docs/how-to-guides/identity-provider-integration-guide" target="_blank" rel="noopener">here</a> to learn how to.</p>`)
 
 var oauthStateInvalid = fmt.Sprintf(htmlBaseTemplate, `<h2>Invalid OAuth Session. Please re-try again.</h2>`)
 

+ 2 - 2
pro/auth/templates.go

@@ -115,10 +115,10 @@ var ssoErrCallbackTemplate = template.Must(
 			id="logo"
 		>
 		<h3>Server SSO Error</h3>
-		<h4>Error reason: {.Verb}</h4>
+		<h4>Error reason: {{.Verb}}</h4>
 		<em>Your Netmaker server may not have SSO configured properly.</em>
 		<em>
-			Please visit the <a href="https://docs.netmaker.io/docs/server-installation/integrating-oauth" target="_blank" rel="noopener">docs</a> for more information.
+			Please visit the <a href="https://docs.netmaker.io/docs/how-to-guides/identity-provider-integration-guide" target="_blank" rel="noopener">docs</a> for more information.
 		</em>
 		<p>
 			If you feel this is a mistake, please contact your network administrator.