Our site currently redirects to the EpiServer login if a user attempts to access linked content that has been moved to the recycle bin. Is it possible to change this behaviour so that users see a 404 instead?
Here is what I did to get this to work property. In my base page, i overrode the OnInit Function
protected override void OnInit(EventArgs e)
if (CurrentPage.ParentLink ==PageReference.WasteBasket)
Not sure if it is the best method but it works for our system.
You could do this as a PagePlugin too, if you don't have a base page.