diff --git a/client/src/pages/authentication/openid.jsx b/client/src/pages/authentication/openid.jsx
index ae808de..ff9ac9e 100644
--- a/client/src/pages/authentication/openid.jsx
+++ b/client/src/pages/authentication/openid.jsx
@@ -22,14 +22,22 @@ const OpenID = () => {
const entireSearch = searchParams.toString()
const [checkedScopes, setCheckedScopes] = useState(["openid"])
+ let icon;
+
// get hostname from redirect_uri with port
- const port = new URL(redirect_uri).port
- const protocol = new URL(redirect_uri).protocol + "//"
- const appHostname = protocol + (new URL(redirect_uri).hostname) + (port ? ":" + port : "")
- const icon = getFaviconURL({
- Mode: 'PROXY',
- Target: appHostname
- });
+ let port, protocol, appHostname;
+
+ try {
+ port = new URL(redirect_uri).port
+ protocol = new URL(redirect_uri).protocol + "//"
+ appHostname = protocol + (new URL(redirect_uri).hostname) + (port ? ":" + port : "")
+ icon = getFaviconURL({
+ Mode: 'PROXY',
+ Target: appHostname
+ });
+ } catch (e) {
+ icon = getFaviconURL();
+ }
const selfport = new URL(window.location.href).port
const selfprotocol = new URL(window.location.href).protocol + "//"
@@ -55,7 +63,7 @@ const OpenID = () => {
}}>
- You are logging in to {client_id}.
+ You are about to login into {client_id}.
Check which permissions you are giving to this application.
@@ -84,7 +92,7 @@ const OpenID = () => {
opacity: '0.8',
fontStyle: 'italic',
}}>
- You will be redirected to