import { connectRoutes } from 'redux-first-router';
import createHistory from 'history/createBrowserHistory';

const history = createHistory();

export const COUNTRY = 'location/COUNTRY';
export const EMBED = 'location/EMBED';

export const routes = {
  [EMBED]: {
    path: '/country/embed/:widget/:country/:region?/:subRegion?'
  },
  [COUNTRY]: {
    path: '/country/:country/:region?/:subRegion?'
  }
};

export default connectRoutes(history, routes);

@@ -102,16 +102,56 @@
 istory';
+%0Aimport queryString from 'query-string';
 %0A%0Aconst 
@@ -486,11 +486,47 @@
 , routes
+, %7B%0A  querySerializer: queryString%0A%7D
 );%0A

enable query params in country page