Have you read the help documentation on the feature? There is another part you need to add to your <a> tag to maintain the other url parameters.
Maybe ignore the fact that navigation doesn't work so you can concentrate on one thing at a time. There is functionality included to solve that problem, but concentrate on one thing at a time.
Once it is sorting we should be able to get it maintaining the url parameters so that navigation will work.