Re: SEO URL supporting l10n/i18n with PrettyFaces

Splash Forums PrettyFaces Users SEO URL supporting l10n/i18n with PrettyFaces Re: SEO URL supporting l10n/i18n with PrettyFaces

#23453

Thank you for the interesting link regarding URL fragments and HTTP requests. I’m aware of that. But I have probably expressed myself ambiguous.

I like to have the fragments for my breadcrumbs only. For my breadcrumbs there are only two cases, fragments come in place.

  1. An internal link refers to a page fragment of our site.
  2. Somebody did a bookmark of a page fragment of our site and uses that bookmark.

In case 1 I have to provide a view parameter holding the fragment when doing the internal link, like:

<h:link
value="#{bundlename['TLD.LABEL_LINK_INTERNAL.solutions.provisioning-weblogic-platform.supported-products']}"
outcome="/pages/solutions/provisioning-weblogic-platform"
fragment="supported-products">
<f:param name="fragment" value="supported-products"/>
</h:link>

In case 2 I have to retrieve the fragment from the URL and make it available during rewriting.

.addRule(
Join.path("/{lang}/{path}")
.where("lang").bindsTo(El.property("localeBean.lang"))
.where("path").matches(".*")
.to("/{path}")

So what I’m asking for is just an extention of your proposal mentioned above using Rewrite, that makes a fragment available e.g. for breadcrumbBean.fragment.