WorkLink is not working with portal themes

As @VVNagaSaiN says, that approach is Traditoinal UI.

The last time i did this (2023 for Infinity '23) I used:

pxRequestor.pxReqContextURI+“/”+pxRequestor.pxReqServletNameReal+“/”+Param.CaseName+“/”+Param.ID

OR

D_SystemConfiguration.pyPublicLinkURL+“PRAuth”+“/”+Application.pyProductAlias+“/”+Param.CaseName+“/”+Param.ID