Query Parameters

This document will show you how to use query parameters in LS using Twig.

What are query parameters? They are parameters that can be passed to a page within the URL. For example:


The name of the query parameter is test and the value is value.

If we wanted to use the information provided by the query parameter on our page we could do this:

{{ param('test') }} // returns "value"

By using the name of the query parameter we can retrieve the value.