jakartaee / jakartaee/faces

Improve Extensionless mapping

Open
#1,693 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
127
Forks
59
Avg merge
23h
Merged PRs (30d)
7

Description

trying the "new" extensionless mapping on faces 4.0
but the url mapping with ".xhtml" should 301 to the same page without extension
otherwise you will end with duplicate contents

e.g.
GET /contacts.xhtml -> 301 -> /contacts

To me the correct implementation is the Omnifaces one, that should be the only one, also
with Params mapping/rewriting support with annotation:

https://showcase.omnifaces.org/facesviews/ExtensionlessURLs

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing extensionless URL mapping in Jakarta Faces and compare its behavior with the OmniFaces ExtensionlessURLs reference linked in the issue. Verify the redirect from /contacts.xhtml to /contacts, then investigate parameter mapping and rewriting with annotation support. Done means extension URLs redirect without duplicate content and the requested parameter behavior is covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.