[bugfix #4165] use config directly instead of parsing URI