Kepp query string from request when generating URL from page ID
Added method to remove query string parameters from URL