Skip to content

Commit

Permalink
chore: add relative paths for images
Browse files Browse the repository at this point in the history
  • Loading branch information
Chisomchima committed Dec 20, 2024
1 parent 8e7f1ce commit c1c3499
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@
</div>
<img
class="logo"
src="/dhis-web-commons/security/logo_front.png"
src="./dhis-web-commons/security/logo_front.png"
alt="DHIS2 Logo"
/>
</div>
Expand Down Expand Up @@ -351,7 +351,7 @@ <h1>Log in</h1>
config.applicationDescription || "Welcome to the DHIS2 application";
if (config.countryFlag) {
const flag = document.getElementById("flag");
flag.src = `/dhis-web-commons/flags/${config.countryFlag}.png`;
flag.src = `./dhis-web-commons/flags/${config.countryFlag}.png`;
flag.style.display = "block";
}
} catch (error) {
Expand Down Expand Up @@ -425,7 +425,7 @@ <h1>Log in</h1>
const user = await response.json();

if (user.loginStatus === "SUCCESS") {
const redirectUrl = user.redirectUrl || "/";
const redirectUrl = user.redirectUrl || "./";
window.location.href = redirectUrl;
} else {
throw new Error("Login failed. Status: " + user.loginStatus);
Expand Down

0 comments on commit c1c3499

Please sign in to comment.