After change iframe src, page load again as new url.

Initially page load normally, after changing iframe src, page load same URL as new URL in the same window. So if user want to go previous page user should need to press back button two times. Someone, please explain why?

Link: https://www.karisma.se/jobbannons?id=101052&source=Hemsida
Backend Code:

import wixLocation from 'wix-location';

$w.onReady(function () {
 let {id} = wixLocation.query;
    $w('#html1').src = 'https://mywebsit.com/?id=' + id;
});

Hello Emran,

This is due to the ID being gotten every time on page ready it sets it as the query parameters of the current link you are in. Try putting the code in $w.onReady() to an event like a button click.

Let me know if this fixes it,
Majd