DEV Community

Ismael Garcia
Ismael Garcia

Posted on

1

Access the client base URL from the login template in keycloack

Currently we are using keycloack as an identity provider in one of our applications

But have a requirement to have a custom registration single page, and I was looking around how to get the client URL or the current client URL from in the template of the login page of keycloak.

Well the solution for this is just really simple:


 href="${client.baseUrl}/register"
Enter fullscreen mode Exit fullscreen mode

You can add the href to the tag, so it redirects to the custom page that you want to handle the registration or anything else.

Top comments (1)

Collapse
 
worthwhilegwarner profile image
Gregory Warner

Just what I was looking for!

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay