fix bug for url subcontext