}
}
if (found == false) {
- href = location.href + '?rowsperpage=' + rowsPerPage.value;
+ pos = location.href('rowsperpage');
+ if (pos >= 0) {
+ base = location.href.slice(0, pos);
+ } else {
+ base = location.href;
+ }
+ href = base + '?rowsperpage=' + rowsPerPage.value;
} else {
pos = location.href.search('rowsperpage');
base = location.href.slice(0, pos);