fix(Portfolio): Correct porfolio's PARAMs (refs #4948)(refs #4947)

Use new syntax for docid PARAMs.

Also:
- Correct link on docids
- Properly escape titles in viewfolder()
Merge pull request #1261 from eguaj/3.2-A4948

fix(Portfolio): Correct porfolio's PARAMs (closes #4948)(closes #4947)