Now to business; my issue is with regards to the URL Tracker behaviour when content nodes are deleted. Currently it sends a 410 response, which is good and proper, but unfortunately not the desired action.
What I'd like to do is have the Tracker redirect the deleted node to the nearest existing parent - I can work this out from the Path variable while hooking into ContentService.Deleted but what I need to know next is how to insert this data into UrlTracker, do you have a public service that could achieve this?
I wouldn't use the UrlTracker for this purpose.
You could try to write your own HttpModule, which comes after the UrlTracker's HttpModule and check for a 410 response in there.
Redirect when content is deleted
Firstly, thanks for developing the package!
Now to business; my issue is with regards to the URL Tracker behaviour when content nodes are deleted. Currently it sends a 410 response, which is good and proper, but unfortunately not the desired action.
What I'd like to do is have the Tracker redirect the deleted node to the nearest existing parent - I can work this out from the Path variable while hooking into ContentService.Deleted but what I need to know next is how to insert this data into UrlTracker, do you have a public service that could achieve this?
Kind regards / Chris
I wouldn't use the UrlTracker for this purpose. You could try to write your own HttpModule, which comes after the UrlTracker's HttpModule and check for a 410 response in there.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.