} else {
base = location.href;
}
- if (location.href.charAt(location.href.length - 1) == '?') {
+ if (location.href.charAt(location.href.length) == '?') {
href = base + 'rowsperpage=' + rowsPerPage.value;
} else {
href = base + '?rowsperpage=' + rowsPerPage.value;