Pretty URLs in website source code

Splash Forums PrettyFaces Users Pretty URLs in website source code

Tagged: 

This topic contains 3 replies, has 3 voices, and was last updated by  floyd 10 years, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #18069

    floyd
    Participant

    Hi,

    I try to SEO my website and I succeeded in installing and runnung PrettyFaces.

    I configured the pretty-config.xml and now in my browsers address bar nice URLs appeared:

    /FUN

    instead of

    /faces/fun.xhtml

    But in the source code of the page the JSF links still look ugly like this:

    a href=”#” title=”…” onclick=”mojarra.jsfcljs(document.getElementById(‘j_idt19’),{‘j_idt19:j_idt21′:’j_idt19:j_idt21’},”);return false”

    Is there the possibility to get nice links in website source, I think this is also important for SEO, isn’t it?

    Thanks for answering!

    Stefan

    #21617

    Could you post your PrettyFaces configuration and the relevant part of your xhtml page please? This way we could get an idea of what you did and what you could do to get the URLs even more “pretty”! :)

    #21618

    This is probably because you are using <h:commandLink> instead of <h:link>

    #21619

    floyd
    Participant

    Oh yes, thats it! I used <h:commandLink> and <h:commandButton> .

    Thank you very much!

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘PrettyFaces Users’ is closed to new topics and replies.

Comments are closed.