In this blog, we will cover the steps to get the URL of a webpage without hard coding it using liquid code.
Follow Below steps to achieve this:
Create Site Marker Record.
- Go to the “Portal Management” App.
- Go to “Site Markers” and click on “+New” to create a new record

- Enter details

Name: Name of site marker record
Website: select the portal website
Page: Select the page whose URL you need.
- Save the record.
Once you create site marker record successfully, add below liquid code on a web template or web page based on your requirement.
Liquid Code:
{% assign reportPage = sitemarkers['Support Page'] %}
<h2><b><a href=" {{reportPage.url}}">Go to Support Page!</a></b></h2>
Explanation:
sitemarkers[‘Support Page’] here ‘Support Page’ is the name of Site marker record.


Now when you will click on “Go to Support Page !” it will redirect to Support page.
