Verify that urlPrefix is set before using it