fix issue with resolving view when hosted at non root url (i.e. with SCRIPT_NAME set)