import { routerStateReducer } from 'redux-router';
import * as types from '../types';

export default () => (state = {}, action) => {
  if (action.type === types.SITE_ID_CHANGED) return { ...state, siteId: action.siteId };
  else if (action.type === types.IS_PREVIEW) return { ...state, preview: true };
  return routerStateReducer(state, action);
};

@@ -306,16 +306,31 @@
  return 
+%7B ...state, ...
 routerSt
@@ -354,13 +354,15 @@
  action)
+ %7D
 ;%0A%7D;%0A

Fix siteIdChanged being triggered twice.