Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird url when I run my app #160

Closed
solokingjec opened this issue Feb 13, 2019 · 5 comments · Fixed by #198
Closed

Weird url when I run my app #160

solokingjec opened this issue Feb 13, 2019 · 5 comments · Fixed by #198

Comments

@solokingjec
Copy link

When I run my app, the url is not properly formed.
This is my admin configuration

admin.indexPage=login.htm
admin.renderMessages=false
.....

when I run, it gives the url like this

http://localhost:8080/http:/login.htm

Instead of

http://localhost:8080/login.htm

I can add you on bit-bucket.

  • AdminFaces version: 1.0.0-RC22-SNAPSHOT
  • PrimeFaces version: 6.2
  • JSF implementation: 2.2
@rmpestano
Copy link
Contributor

Hi, how's the url mapping of faces servlet in web.xml?

@rmpestano
Copy link
Contributor

Does it work with RC20?

@solokingjec
Copy link
Author

solokingjec commented Feb 13, 2019 via email

@rmpestano
Copy link
Contributor

It's probably related to this.

I'll do some tests here.

@rmpestano
Copy link
Contributor

rmpestano commented Feb 13, 2019

can't you have a login and index (initial page) page on your application? For example this works for me:

admin.loginPage=login.htm
admin.indexPage=index.htm

benkard added a commit to benkard/admin-template that referenced this issue May 3, 2020
This fixes the case where a redirect to, say, /index.xhtml comes out
as http:/index.xhtml instead of the correct URI.  This usually happens
when the application prefix is empty and its path is /, which matches
the first slash after the URI scheme.  This patch handles that case by
skipping over the URI scheme when looking for the start of the prefix
in the request URI.

If the scheme cannot be detected in the request URI, the behavior is
unchanged.

Fixes adminfaces#160.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants