Solved

Current Item URL link in DocGen gives 404 error

  • 22 January 2020
  • 3 replies
  • 12 views

Badge +10

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?

icon

Best answer by aak1 12 March 2020, 00:40

View original

3 replies

Badge +2

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

Badge +10

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.

Badge +10

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