So I have an outputLink that is styled to look like a button. It is essentially a delete button so whenever it is pushed a selected custom object (Relationship_Detail__c) is deleted. The button functions somewhat properly because the object is indeed deleted. However I am receiving an odd URL message saying that the URL no longer exists. I will attach a screenshot of the error message and here is the outputLink code
<apex:outputLink styleClass="btn" target="_top" value="{!URLFOR($Action.Relationship_Detail__c.Delete, selectedDetail)}" rendered="{!IF(BEGINS(selectedId, '00'), true, false)}">
<apex:outputText value="Delete"/>
</apex:outputLink>