changing calculated urls to correspond to actual routes