For Dev - How to Shorten URL (App Lib V2)

Attention: The current document only works with the new front-end lib from Boost Commerce. Please read this document first to know if you are using the latest version. For other versions, kindly contact for support.

This instruction is appropriate for App Lib V2 only. The app lib V3 associated documents will be available soon. Please contact us for further assistance.

In boost-pfs-filter.js, set these settings:

// Override Settings

var boostPFSFilterConfig = {



isShortenUrlParam: true,

urlScheme: 2,

/* This list is an EXAMPLE! Please don't copy this */













  • isShortenUrlParam: Enable shorten URL or not
  • urlScheme
    • 0: Don't change address bar URL
    • 1: Use one key & value pair for each filter value: color=red&color=blue
    • 2: Merge key & value pair for filter value with the same key: color=red,blue
  • shortenUrlParamList
    • Check the filter options the store has
    • Make a list of URL params to shorten, for example:
      • pf_c_collection → collection
      • pf_t_tag → tag
      • ...
    • Make sure the params are unique and don't conflict with other apps
    • Make a list with this format