Be root context aware in URI handling