Infocaster / UrlTracker

An Umbraco package that tracks 404 not found results and helps you redirect visitors to the right page
https://infocaster.net/wat-we-doen/umbraco-plugins/301-url-tracker
MIT License
16 stars 12 forks source link

Feature request: Redirects notifications #190

Open aochmann opened 2 weeks ago

aochmann commented 2 weeks ago

Hi there! šŸ‘‹šŸ»

Iā€™m impressed with the package! Iā€™d like to propose a feature: the ability to send custom Umbraco notifications when creating, updating, or deleting redirect. Currently, Iā€™m integrating a redirect service for a headless project. With this feature, I could send webhooks containing paths to revalidate redirect details on both the frontend redirects definition and backend caches.

What are your thoughts on this?

Cheers, Adrian

D-Inventor commented 2 weeks ago

Hi @aochmann ! I'm happy to hear that you're enjoying the URL Tracker šŸ˜Š

I think notifications are a very logical addition to the URL Tracker. Extensibility has been a focus point of the plugin anyway, so it makes a lot of sense. I'm going to put this on the list, thank you for the suggestion!

If you need a quick workaround, I recommend making a decorator on the IRedirectRepository. From there, you can observe changes to all redirects, make your own notifications or build your logic directly. Here is an example decorator that I built for caching.

Also, out of curiosity: which version of the URL Tracker do you use?