URL not getting captured properly from pathfield in published url
Scenario : I have a component which consists of a pathfield. The component has a button, on clicking it it should redirect to the page configured in pathfield in dialog.
Issue : I am putting in the URL as /content/project/test-page in the pathfield. The component works fine when I choose "View as published" -- It will automatically attach https://(host)/content/project/test-page.html to the pathfield URL and hence it will work properly.
But in published url it won't add the https://(host) before the url and .html after the url. Hence it's unable to redirect to the page. What exactly is the issue since "view as published" works fine but in published urls it doesn't work.
*** I'm using ${properties.buttonPath} to read the pathfield entry. ***
