function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rakesh ERakesh E 

command link not redirecting to the required page when opened using "new tab" or "new window"

Hi,

 

i have commandLink in my VF page(page1). in its action a controller method is called which redirects it to a new page(page2).

whan i just simply click on the link its going to page2.

but when i right clik on the link and say either  open in new tab/ open in new window its again showing me page1 instead of page2.

 

please let mw know what is the problem. is it becuase of commandlink. let me know if there is any sloution or work around for this.

 

thanks in advance

 

Regards,

Rakesh

kiranmutturukiranmutturu
command link is not the reference to the constructed url that was constructed in the action method.. i think that is the root cause...it just need to refer to the location whether it is click on a url or open in new tab click
Rakesh ERakesh E

I am sorry but i didnt understood what you are trying to say. "command link is not the reference to the constructed url that was constructed in the action method" 

 

but when directly click on the link its getting opened correctly. please dont mind to explian in bit detail.

 

thank you

 

Regards,

Rakesh