Problem with redirect in JSF

UI Components for JSF
Post Reply
ivan5737
Posts: 1
Joined: 14 Feb 2017, 22:02

15 Feb 2017, 00:09

Good day

I have a problem with redirect

When I use redirect in my localhost it works fine, example:

Code: Select all

     ExternalContext ctx = FacesContext.getCurrentInstance().getExternalContext();
     String ctxPath = ((ServletContext) ctx.getContext()).getContextPath();
     ctx.redirect(ctxPath + "/menu.xhtml");
my localhost is like this:
localhost:8092/myProject/login.xhtml
localhost:8092/myProject/menu.xhtml

but when I use a DNS in a server, the redirect doesn't work fine in IE11
my DNS is like this:
http://my.project.com.mx/

but If in IE11 I change the medium privacy to low the redirect works fine

Image

someone know how to fix this problem, thank you

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

16 Feb 2017, 16:26

Use stackoverflow or simular. Does not seem PrimeFaces related

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 45 guests