Extracting $urlState from the core