Problem with anchor in URL from agent

I have a webQuery agent that processes a submitted form and based on the results I want to send the user back to the document in the edit mode to an anchor placed on the form. If I manually type in the URL like:

http://localhost/notesdb.nsf/0/UNID?EditDocument#myspot

it works fine. But when the url is created in the agent (and I checked log.nsf to ensure it is correct) I lose the “#myspot” part of the URL.

Is there a way around this?

Thanks,

Mike