Fix exception when referer is not a page containing node information (eg. jetty landing page).
Add rewrite for URL with parameters in root page.