added override for math method to handle relative url conversion