fixing bug #5035
method getURL of resource contains web context. So using c:set instead of c:url.
Furthermore, now file is opened in a new window