page detection: Add logic to strip page from URL