Reverting redirection logic #2271, and fix tests

Relate to issue #2271 

When trying to access to node/1 i'm redirected to localhost/OpenScholarMain/OpenScholarMain/john

I'm reverting the two commits to prevent the wrong redirect path.