Skip to content
IvaSure add-ons and services for SureCart storesJoin the POD waitlist

URL parameters and deep links

3 min read
Published

Filter state lives in the URL. That is what makes a filtered view shareable, bookmarkable, and navigable with the browser Back button - and it is why a filtered page can be a landing page at all.

The prefix

A URL rules card with a filter parameter prefix field reading ks_ and a URL behavior dropdown set to Query parameters.
The URL controls.

Every parameter starts with a prefix, ks_ by default, so a filter never collides with a parameter your theme or another plugin already uses. It is configurable on the Cache and URLs tab.

A taxonomy that already starts with the prefix is not double-prefixed
A taxonomy named ks_room produces ks_room, not ks_ks_room. One named kt_category produces ks_kt_category.

The parameters

ParameterExampleMeaning
ks_{taxonomy}ks_room=bedroom,storageTerm slugs in that taxonomy, comma separated.
ks_vopt_{option}ks_vopt_color=Navy,SandVariant option values as exact display text, not slugs.
ks_qks_q=lampKeyword search.
ks_sortks_sort=price_ascOrdering. Omitted while the section is on its default.
ks_collectionks_collection=living-roomScope to one collection.
ks_price_min / ks_price_maxks_price_min=50&ks_price_max=200Price bounds. Either may stand alone.
ks_stock_statusks_stock_status=in_stockAvailability.
ks_on_saleks_on_sale=1Discounted products only.
ks_ratingks_rating=4That many stars and up.
ks_operatorks_operator=orOnly ever present when it is not the default, AND.
ks_pageks_page=2Pagination. Only ever present past page one.
Parameters that are at their default are left out
Sort while the section is on its default, operator AND, page one: none of them appear. A filtered URL says only what a shopper actually changed, which is what keeps the address short enough to share.

The order is always the same

Taxonomies are sorted by their query key, term slugs are sorted within each, variant values are sorted, and the parameters themselves are sorted last. Two shoppers who select the same three filters in three different orders land on byte-identical URLs.

Selected in any order, written in this one
?ks_material=oak&ks_room=bedroom,storage&ks_sort=price_asc
Why that matters
One address per filtered view rather than a dozen equivalents: page caches hit, analytics group properly, and a canonical tag has one thing to point at.

What the URL does

  • Applying a filter pushes a history entry, so Back undoes it and restores the previous results.
  • Changing any facet resets pagination to page one - page three of an old filter is meaningless under a new one.
  • Every option is a real link, so a filtered URL works with JavaScript disabled and can be crawled.
  • A parameter with the prefix that does not name a real taxonomy is ignored.
A variant value containing a plus sign is encoded
A literal + in a URL decodes to a space, so a value like 3+2 seater would arrive as 3 2 seater and match nothing. Variant values encode it as %2B. Only the plus needs this; spaces and quotes are handled downstream.

Anything the filter can produce, you can write yourself - for an email campaign, an ad landing page, or a link in a buying guide.

Oak, in the bedroom
https://example.com/shop/?ks_material=oak&ks_room=bedroom

The slugs are the term slugs, not their names. If a slug is wrong the parameter simply matches nothing, so test the link before you send it.

Save to list