add baseUrl to config and use it for links