Use base url to generate template links/redirects

This commit is contained in:
2022-08-02 11:48:42 +02:00
parent 5beae19d21
commit d786d3a26f
7 changed files with 29 additions and 8 deletions

View File

@ -3,16 +3,16 @@
<div class="column is-4-tablet is-8-mobile">
<div class="columns is-mobile is-gapless">
<div class="column is-narrow">
<h1 class="is-size-3 title"><a href="/" rel="Homepage" class="has-text-black">OIDC Test App</a></h1>
<h1 class="is-size-3 title"><a href="{{ .BaseURL }}" rel="Homepage" class="has-text-black">OIDC Test App</a></h1>
</div>
</div>
</div>
<div class="column">
<div class="buttons is-right">
{{if .IDToken}}
<a class="button" href="/logout">Logout</a>
<a class="button" href="{{ .BaseURL }}/logout">Logout</a>
{{else}}
<a class="button is-primary" href="/login">Login</a>
<a class="button is-primary" href="{{ .BaseURL }}/login">Login</a>
{{end}}
</div>
</div>

View File

@ -1,4 +1,4 @@
{{define "title"}}Accueil{{end}}
{{define "title"}}Home | OIDC Test App{{end}}
{{define "body"}}
<section class="home is-fullheight section">
<div class="container">

View File

@ -1,4 +1,4 @@
{{define "title"}}Accueil{{end}}
{{define "title"}}Profile | OIDC Test App{{end}}
{{define "body"}}
<section class="home is-fullheight section">
<div class="container">