I am trying to use an iframe to display another page inside my main page. The goal is to reload part of the page without reloading the whole page.
I tried using
$w('#html1').src = '/about';
#html1 being an HTMLElement. However I get an error saying '/about' is not a url.
I tried using wix-location to build the full url, but the url returned by wix-location does not match the actual url: http://yoursitename.wixsite.com/yoursitename?dsOrigin=Editor1.4&editorSessionId=e.....
I tried getting the url using document.location, but that does not seem allowed.
Is there a function to go from the page short path (like '/about') to the full url? Or would it be possible to allow the .src property of HTMLElement to support short paths?