Agent output - Redirecting URL in brackets

I’m trying to redirect an agent output to an URL using Print “[URL]” and instead of redirect to the URL, prints [URL].

any tip or idea is welcome

thanks in advance

Subject: Agent output - Redirecting URL in brackets

Hi,

I suppose that URL is a variable, try :

Print “[”+URL+“]”

Thierry

Subject: RE: Agent output - Redirecting URL in brackets

Thanks Thierry for your response, URL is not a variable, is a string, I just wrote URL as an example, what I put in the agent is something like this:

Print “[base.nsf/myPage?OpenPage]”

Subject: RE: Agent output - Redirecting URL in brackets

Please check that there is no other print statement in your script except the Print "[base.nsf/myPage?OpenPage]"Even in error printing or traping code also there should not be any print statement.

Subject: RE: Agent output - Redirecting URL in brackets

Hi Susahant, thanks for your answer.

In my agent, there are many print statments, because is an dynamic HTML page generator, and there is a error trap, that redirects the page to a error page, and here is where I was trying to use the redirection with brackets.

So, what I understand, now, is that the server parses the brackets within a print statment as a redirection URL, uniquely, if there are no other print statments in the agents, is this correct?

thanks and regards

Subject: RE: Agent output - Redirecting URL in brackets

Ok,

Add a slash at the beginning and the path without server name :

Print “[/PathWithoutServerName/base.nsf/myPage?OpenPage]”

I use this syntaxe in many agents and it works for me…

HTH

Best regards,

Thierry

Subject: Agent output - Redirecting URL in brackets

Have you tried using HTML character entities? Like this:Print “X#91;URLX#93;”

(Replace X above with the ampersand &)

  • Johan

johan@kanngard.net

http://dev.kanngard.net

Subject: RE: Agent output - Redirecting URL in brackets

Thanks for your response Johan, but it doesn’t work.

I don’t know why the parser doesn’t interpret this line as a redirection.

Instead, I use JS to redirect, this works.

regards

Subject: Re: Agent output - Redirecting URL in brackets

hi to all,

i think that it works only in NON WebqueryOpen agents.

.