Catch errors due to custom URLs