Fixing urls for server vs local