
Hi
I have a portal site. i tried to get the base url i.e: abc-dev.powerappsportals.com/
I am on the index page (refer to image 1). I need to get the base URL using liquid code. i tried with {{ page.url}} , and {{ page.url | base}}. it only returns "/index" for the example (refer to image 1). Please advise how i can get the base URL. Thank you, Siva
image 1
I think you might be able to accomplish what you want with the built in Site Marker named Home. The liquid code would look like this:
{{ sitemarkers[Home].url }}
Nicholas Hayduk has a video about it on his Engineered Code YouTube channel named "Dynamics 365 Portals Tip #16 - Please Use Site Markers! - Engineered Code"