Skip to content

Commit

Permalink
Apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikmonsen committed Oct 17, 2024
1 parent 78bde99 commit 7f89b8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ cp .env.example .env.local
| NEXT_PUBLIC_KEYCLOAK_REALM | _N/A_ | Keycloak-realmen |
| NEXT_PUBLIC_KEYCLOAK_CLIENT_ID | _N/A_ | Keycloak-klienten |
| AUTH_API_PATH | _N/A_ | Sti til autentiserings-APIet |
| IMAGE_API_URL | _N/A_ | Sti til bilde-APIet |

Deretter må du kjøre følgende kommandoer:
```bash
Expand Down
2 changes: 1 addition & 1 deletion src/app/AuthProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const AuthProvider = ({children}: { children: React.ReactNode }) => {
}
let currentUrl = window.location.href;
// The app dislikes being redirected to a sub-path, redirecting to root to avoid issues
currentUrl = currentUrl.replace(/\/hugin.*/, '/hugin');
currentUrl = currentUrl.replace(/\/ammo.*/, '/ammo');
currentUrl = encodeURIComponent(currentUrl);

window.location.assign(`${keycloakConfig.url}/realms/${keycloakConfig.realm}/protocol/openid-connect/auth` +
Expand Down

0 comments on commit 7f89b8c

Please sign in to comment.