Same page looks different after redirect

I have created a simple webpage and deployed to urmel.netlify.app

I have also added a domain and redirected the page to that domain: www.urmel-kinderladen.de

This works fine. However, the two pages look different and the icons are missing.

Does anyone know the reason?

Hi @urmelev

The error, and reason for it (or them as there are multiple) is logged in the developer console

Specifically this is due to the URL/path for asset (CSS/JS) used on the page. An example is

<script type="text/javascript" src="https://urmel.netlify.app/js/jquery-3.6.0.min.js"></script>

which is using the FQDN in the src attribute. To overcome the issue, these use paths relative to the domain e.g.

<script type="text/javascript" src="/js/jquery-3.6.0.min.js"></script>

The solution to this is dependent on the framework used to build the site. However, if there is a key such as homepage, or publicPath or something similar where you have the value https://urmel.netlify.app/ changing the value to /` may well remedy this issue.

If you are unable to find the solution, can you share the repository you are deploying from.

Perfect, thanks a lot. Changed baseURL to “/” and now its identical.