last day (15 days later) » 

10:48 AM
Hi
Thnak you for joining
I tried adding the base element in the head but it did not work.
Is there a way where I could detect when the change is happening and prevent it?
I am testing on a website with URL mygov.in . It loads a chat bot. If I render this website on my location machine, all the image paths gets changed w.r.t local browser URL as shown below
But if I see the original website, the URLs remain intact as shown below
Because of this the images do not get loaded and 404 requests occurs on the network
Would you help me understand this? @CBroe
 
11:15 AM
@Amanda it looks like those images are not present in the actual page source with relative URLs, but get added by the JavaScript that embeds this chat functionality later on. And that script likely uses the current document’s URL, to generate the absolute image URLs. So you would probably have to explicitily modify that script itself as well.
 
Hi @CBroe I get that but I think there is another way. There is an app moxveda.com , which also does the translation. If you put this URL mygov.in and translate, and then inspect the HTML you will see that the image links are not changed but remain the original
Somehow they have handled this.
But I cannot understand how do I do this.
 
11:38 AM
The chat script embedded into an empty jsfiddle still renders the correct images, so it appears it is not setting those with dynamic URLs based on the current environment. Which then means, exchanging those images URLs must have probably happened due to what you are doing …
 
Did not understand
If I inspect the network tab I see that the initial URL sent from the server has the correct URL
As you could see initially they are correct but gets transformed later to give the following error on console
@CBroe Any idea? ..
 
12:19 PM
If you were to render the webpage in a different language, what approach would you take? Would you use a headless browser in the server? Any other approach? Sometimes, I feel there could be a better way to render and translate the website.
 
 
2 hours later…
1:54 PM
hi
 
 
1 hour later…
3:10 PM
@MorBaruch Hi
 

last day (15 days later) »