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!

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay