Fix bug #3886 Documentation links broken in setup
Merge pull request #279 from kasunchathuranga/Bug3886

Fix bug #3886 Documentation links broken in setup
Merge remote-tracking branch 'origin/QA_4_0'
Fix generating links to docs

This makes correct links to docs when run from setup.
See bug #3886 and gh issue #279.
Merge remote-tracking branch 'origin/QA_4_0'