my url after performing a call to a database looks like this:
is there a way to chop off the "?scat=3&mcat=4" part of the url?
Can you fetch that page via POST instead of GET? The latter sends the display data as a batch of variables inside the POSTing message, not as part of the URL.
Your calling function might have a :method option to switch to 'post'.