It's not debug code, I usually set the base uri in my config, however, I found a way in slim not to need this so watch for update incoming shortly :)