I would like to have a safer check for the absolute / relative URL, but for the time being I think it's ok.