The reason I implemented it this way is because it's very simple and straightforward to extract url params in this way. I looked first at parsing the params from the URL in the client, but all of the suggested methods I could find involved some rather ugly regex work. So, I haven't yet found a cleaner way to do this. Do you know a clean way to do it? I'm open to suggestions.