fixing the problem that url specified navigation was broken
complying jslint
push out the fixed version to the dev