Mount resources by locale
-------------------------

                 Key: WICKET-1530
                 URL: https://issues.apache.org/jira/browse/WICKET-1530
             Project: Wicket
          Issue Type: Improvement
          Components: wicket
    Affects Versions: 1.3.3
            Reporter: Sebastiaan van Erk


When mounting resources (e.g., bookmarkable pages) and using localization, I 
find it strange that you have to mount all versions of the resource (all 
locales) on 1 path.

This has the following major drawbacks:

1) The resource is not directly reference-able in any locale other than the 
default locale.
2) An indexer only finds one version of the resource (or if it finds multiple, 
the others are not bookmarkable, so they are expired by the time they're in the 
index).
3) It is visitor unfriendly: visitors of the site that press a "change locale" 
button get a non-bookmarkable page, which breaks if they copy paste it to link 
to your supposedly bookmarkable page.

If it were possible to specify the locale when mounting a resource, this would 
allow a different path to be specified per locale, solving all of the above 
problems. It would allow links within your pages to the other versions of the 
page (other locales) that are stateless, making them crawlable. It would allow 
for a stateless locale change link that properly changes the URL so that users 
which copy/paste the URL get an URL that actually works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to