Url for type

From Shopify Wiki

Jump to: navigation, search

url_for_type(type)

This filter creates an url for a type name by URL-encoding the type name and adding the appropriate directory in front of it to make the url work.

{{ "Used car" | url_for_type }}

The previous example would result in an output like this:

"collections/types?q=Used+car"

You will most likely want to use link_to_type instead.