Fixed URL extraction using -pathmod