lonelyplanet/rizzo — pull request #998 by jmmerino (2014-10-13 11:15:46+00:00)
Title: Controller: Fixed bug with params and layer reset improvements

One bug fix and one improvement.
### Bug:
- When the url has query string parameters, these parameters were being lost between requests. Now, the parameters are added to the current state and to the url when a request is made.

### Improvement:
- There are a problem with layers and status. The problem is that, when the layer is opened, the pushstate is replaced. This cause that, if you hit back button in the browser, you get the wrong page (not the one before open the layer, but the previous one).
- Also, when the layer is closed, the controller is reset. This is causing that, if some urls was loaded by the controller, before opening the layer, these urls are lost.
- With the improvement, when you close the layer, you get the url that you were before open the layer

> Steps to reproduce: Open "/inspiration". Click on the next arrow to go to another day (two or three times). Then, Open the layer. Navigate with the layer next button to the next day. Close the layer. Result: You get the first url that you load, not the one before you opened the layer.