Fix problem with absolute urls

Fix #322