allow url-based sort/dir to work