Fix links to jobs and builds within folder

Fix links to jobs and builds on the pipeline view that fall in 404 error when jobs are within folder.

This try to resolve the issue: https://issues.jenkins-ci.org/browse/JENKINS-20841