Resource paths bad in translated pages

bmuessig
8 Posts
bmuessig posted this 22 July 2022
Report a bug

I've created a website with two languages. Everything works fine with the default language, but when switching to the second language, all resources that are not inside a page's CSS file, but referenced in the HTML no longer work, as the language path is prepended to them.

To further elaborate, when this bug occurs:
If you have a bilingual website with one background image and one regular image, only the background image works in the translated version. This is the image element in the translated HTML:

<img src="/de/images/logo.svg" class="u-logo-image u-logo-image-1">

It doesn't work, because the path (in absolute HTML export mode) is not adjusted to point to the top level images folder.

I've created a website with two languages. Everything works fine with the default language, but when switching to the second language, all resources that are not inside a page's CSS file, but referenced in the HTML no longer work, as the language path is prepended to them. To further elaborate, when this bug occurs: If you have a bilingual website with one background image and one regular image, only the background image works in the translated version. This is the image element in the translated HTML: <img src="/de/images/logo.svg" class="u-logo-image u-logo-image-1"> It doesn't work, because the path (in absolute HTML export mode) is not adjusted to point to the top level images folder.

Last edited 22 July 2022 by bmuessig

Vote to pay developers attention to this features or issue.
10 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 22 July 2022

Hi Benedikt,

Please provide a link to your site and attach your project. Also point to the page where we could see the issue. The problem with the path to the image should have been fixed before.

...................................................
Sincerely,
Hella
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Benedikt, Please provide a link to your site and attach your project. Also point to the page where we could see the issue. The problem with the path to the image should have been fixed before. ................................................... Sincerely, Hella Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
bmuessig
8 Posts
bmuessig posted this 22 July 2022

Hi Hella,

you can find the website here: https://benedikt.cloud/de/

I'll upload the project later, when I have access to it.

Best regards,
Benedikt

Hi Hella, you can find the website here: https://benedikt.cloud/de/ I'll upload the project later, when I have access to it. Best regards, Benedikt

Last edited 22 July 2022 by bmuessig

Support Team
Support Team posted this 22 July 2022

Hi Benedikt,

Thanks, I see the issue. Please attach your project so we could investigate it further.

...................................................
Sincerely,
Hella
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Benedikt, Thanks, I see the issue. Please attach your project so we could investigate it further. ................................................... Sincerely, Hella Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
bmuessig
8 Posts
bmuessig posted this 29 July 2022

Can I submit my project without uploading it here publicly?

Can I submit my project without uploading it here publicly?
Support Team posted this 29 July 2022

Hi Benedikt,

We have fixed some issues with the images in the latest 4.15 version. Could you please try to update your theme and re-export it to check if the issue persists?

...................................................
Sincerely,
Hella
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Benedikt, We have fixed some issues with the images in the latest 4.15 version. Could you please try to update your theme and re-export it to check if the issue persists? ................................................... Sincerely, Hella Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
bmuessig
8 Posts
bmuessig posted this 29 July 2022

You have indeed fixed it. That's great!

You have indeed fixed it. That's great!
bmuessig
8 Posts
bmuessig posted this 29 July 2022

Strangely enough, this update broke title export, when exporting to static HTML.
In the translated version, there is a blank <title></title> added now.

Strangely enough, this update broke title export, when exporting to static HTML. In the translated version, there is a blank &lt;title&gt;&lt;/title&gt; added now.
Support Team
Support Team posted this 29 July 2022

Hi Benedikt,

You are welcome and nice to hear that everything is fine now. Feel free to contact us on any occasion.

...................................................
Sincerely,
Hella
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Benedikt, You are welcome and nice to hear that everything is fine now. Feel free to contact us on any occasion. ................................................... Sincerely, Hella Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
bmuessig
8 Posts
bmuessig posted this 29 July 2022

Strangely enough, this update broke title export, when exporting to static HTML.
In the translated version, there is a blank <title></title> added now.

It's a bit more nuanced actually. If you manually set the title for each page and language, it works, but if the default title is maintained, it does not output a title.

> Strangely enough, this update broke title export, when exporting to static HTML. > In the translated version, there is a blank &lt;title&gt;&lt;/title&gt; added now. It's a bit more nuanced actually. If you manually set the title for each page and language, it works, but if the default title is maintained, it does not output a title.
Support Team
Support Team posted this 29 July 2022

Hi Benedikt,

Thanks for the details. I have tested and I see the missing default title in other languages. I'll ask our developers to check it out.

...................................................
Sincerely,
Hella
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Benedikt, Thanks for the details. I have tested and I see the missing default title in other languages. I'll ask our developers to check it out. ................................................... Sincerely, Hella Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
You must log in or register to leave comments