diff --git a/src/main/resources/templates/login.html b/src/main/resources/templates/login.html
index f2edd99..67ece5c 100644
--- a/src/main/resources/templates/login.html
+++ b/src/main/resources/templates/login.html
@@ -300,6 +300,7 @@
3. Select the credential.
/**/
@@ -328,8 +329,13 @@ 3. Select the credential.
// Función para configurar el enlace del botón con el authRequest
function configureAuthRequest() {
const walletButton = document.getElementById('dome-wallet-button');
+
+ if (walletBaseUri && !walletBaseUri.endsWith("/")) {
+ walletBaseUri += "/";
+ }
+
if (authRequest) {
- let walletUri = authRequest.replace("openid4vp://", "https://wallet.dome-marketplace.org");
+ let walletUri = authRequest.replace("openid4vp://", walletBaseUri);
walletButton.onclick = () => window.location.href = walletUri;
}
}