fix URL generation so it works with custom settings