Not sure if this is related but I had a similar problem with urls growing longer and longer with each click within the same page, ie
controller/action
[click]
controller/action/parameterA/1
[click]
controller/action/parameterA/1/parameterB/2
[click]
controller/action/parameterA/1/parameterB/2/parameterC/3
and so on...
I was using the url helper to create URLs, ie
PHP Code:
<a href="<?php echo $this->url(array('controller'=>'invoices',
'action'=>'index','parameterA'=>'1'));?>">Link</a>
I discovered (after many hours on Google) that the URL helper takes some extra parameters :
PHP Code:
<a href="<?php echo $this->url(array('controller'=>'invoices',
'action'=>'index','parameterA'=>'1'), '', true);?>">Link</a>
which seem to reset the url each time you click.
Hope this helps