alphagov/redirector — pull request #838 by jamiecobbett (2014-07-28 16:25:08+00:00)
Title: [BusinessLink] Don't throw away other querystrings

When building nginx config files, don't ignore querystring parameters which
aren't one of the hardcoded set: topicid itemid and page. Instead allow them to
be used in mappings.

This fixes our inability to add mappings for old URLs which include other query
parameters, specifically agency_id and service_id which are used for
"piplinks".

Before we can switch the BusinessLink site to Transition, we will need to
replace this logic with mappings, but that will mean generating lots of
mappings to accomodate the permutations. For now, let's do the simple thing.