Don't set the base URI to the config because screws the links up if accessing on different urls. e.g. if you first go to http://localhost:8080 and then http://www.example.com the links will show up as http://localhost:8080 and vice versa