Demo Lab

[[...segments]] for search

Clean search URLs can carry category and city in the path while q stays in the query string.

[...segments] and [[...segments]]

[...segments] catches nested paths. [[...segments]] is optional, so it also covers the base /search route.

/en/search
Path segments
none
Query string
none
Recognised filters
all events
/en/search/music
Path segments
music
Query string
none
Recognised filters
category=music
/en/search/london
Path segments
london
Query string
none
Recognised filters
city=london
/en/search/music/london
Path segments
music / london
Query string
none
Recognised filters
category=music, city=london
/en/search/music/london?q=jazz
Path segments
music / london
Query string
q=jazz
Recognised filters
category=music, city=london, q=jazz
Back to Demo Lab