"My Favorites" panel breaks if the page address contains a < or > symbol

Hi all!

This bug concerns the XWiki extension “Favorites Application”.

If the page URL contains < or > characters, the “Add this page” button in the “My Favorites” panel displays text and does not work:

I created a Jira ticket about this bug: XFAV-16
But maybe this can be fixed manually in XWiki?

It should be possible to fix it manually on your wiki. :slight_smile:
It looks like there’s some escaping missing at application-favorites/src/main/resources/Favorites/Code/FavoritesPanel.xml at 98961ba22cc3d7486586acb74172c31d8bc65a01 · xwiki-contrib/application-favorites · GitHub . In order to fix it yourself, you first need to make sure you can see hidden pages (x+x+x+h to toggle it), then search on your wiki for the page titled FavoritesPanel. Then edit the content of the panel and add some escaping.

… Just checked the Git blame on the codebase, and it seems like @acotiuga already fixed it :smiley:
So you can either wait for the next release of the extension, or add the escaping in your own wiki panel content right now just like he did in the codebase :slight_smile:

Have a great day!
Lucas C.

1 Like

The reported issue is fixed now and a new version of the application was released. Just upgrade to version 1.2.5

2 Likes

Wow, how cool! Yes, updating to version 1.2.5 worked! ))
@acotiuga, thank you for solving this problem so quickly! You helped a lot!