Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Chris Wilson 100 posts 377 karma points
    Nov 12, 2015 @ 10:47
    Chris Wilson

    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

  • Stefan Kip 1577 posts 4012 karma points c-trib
    Nov 12, 2015 @ 10:49
    Stefan Kip

    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.

Please Sign in or register to post replies

Write your reply to: