Change Router location to history