xwikisas / application-urlshortener

Create shortened URLs for XWiki pages.
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Can't create a shortened url for a copied page #11

Closed lamblinc closed 3 months ago

lamblinc commented 4 months ago

Steps to reproduce :

Expected result : you get a new short url

Actual result : getting a short url is impossible, as URLShortener.Code.URLShortenerClass object already exists, being copied during the page copy process.

vmassol commented 4 months ago

Idea: use an EventListener to listen to a copy (DocumentCopyingEvent maybe), in order to clear the xproperty