LDEV-1971From a tip from a Fiona, the context path "rams/" or "lams/' is actually stored in the db, so we can get it from there instead of getting it from the context of the request
LDEV-1989 Stopped author from doing cut/copy/paste (keyboard shortcut) actions on activities when a dialog is open as it was messing with cut/copy/paste of text in the dialogs
LDEV-1987 Export portfolio not exporting imagesthis was related to LDEV-1971:, the image urls were not being adjusted properly in export becuse the "lams/www/secure" url was instead "rams/www/sevure" because this tool was developed in rams.now the "lams" bit is retrieved from the request context using:request.getContextPath().substring(0, 5);
LDEV-1971 : Main export server only adjusts image urls for lams, not in rams,this is because "/lams/secure/www" was included in the regexnow the "lams" bit is retrieved from the request context using:request.getContextPath().substring(0, 5);