Fix js script in c# application

Job ID: 37601435

Budget: $10 – $30 USD

my javascript reads for the db and gets the logoname correctly however when i publish to the host server it adds "home" to the path.. the logo file is located in root/Logos

fetch("/home/GetLogoName")
.then(function (response) {
return response.text();
})
.then(function (logoData) {
var data = JSON.parse(logoData);
var logoImage = document.createElement("img");
var logoName = data.logoName;
var logoLink = data.hrefLink;
reshutLink = data.hrefLink;


logoImage.src = logoName;
logoImage.alt = "Logo Brand";
logoImage.className = "logo-img";


var logoLinkElement = document.createElement("a");
logoLinkElement.className = "navbar-brand";
logoLinkElement.href = data.hrefLink;
logoLinkElement.target = "_blank";
logoLinkElement.appendChild(logoImage);
logoNavItem.appendChild(logoLinkElement);
navbarNav.appendChild(logoNavItem);
});

When running on
Requirements:
- Strong experience with JavaScript and C#
- Ability to troubleshoot and debug code
- Familiarity with C# applications and JavaScript syntax
- Attention to detail to identify and fix the syntax error promptly

Timeline:
- The fix is needed within 24 hours of project acceptance.

Additional Information:
- No additional functionality is required for the script.