Tweaking the alter_url function to actually return a value