Skip to main content

I'm currently having an issue with getting a link back to the current item in a library. I have a docgen action that creates a PDF. In the PDF I want a link to the current item, but when I use the workflow context current item URL I get redirected to a 404 error page instead of the item. I'm not sure what I'm missing here, but I'm sure it must be something simple. Help?

When you compare the URL that is populated in the PDF with the actual URL to that item, what is the difference? Maybe a space issue (needs to be encoded)?



Possibly try putting the context item url into a variable and using that in the PDF to see if you get the same behaviour


I tried putting the URL into a variable and using that in the PDF, but it resulted in the same behavior. When I copy the link in the PDF into the address bar, it works so it doesn't appear to be a space issue.


It turns out that there was a space in the hyperlink. Using a regular expression to change the space to %20 did the trick.


Reply