Design issue Permanently deleting a thread via inline mod results in a "thread not found error"

Paul B

XenForo moderator
Staff member
Open a thread and click on the checkbox on the first post.
Permanently delete it and the browser refreshes back to the thread URL and an error message is displayed.

This only happens when deleting within the thread, not from the forum view.

error.webp
 
I just gave that a try but I was redirected to forum view after a complete delete within the thread
Is their possibly another variable ?
 
I tried it with a thread with a single post and multiple posts, on my test installation and live site.

I received the same result each time.
 
So if I understand you right, you're NOT deleting a thread from within the thread, but you delete one or more post(s) with the result of the whole thread being deleted. This might be the difference and this is where the error occurs!
When you use the thread tools to delete the thread from within the thread, everything is ok.

Can confirm this behavior.
 
The problem is the dynamic redirect in XenForo_ControllerPublic_InlineMod_Abstract

PHP:
		return $this->responseRedirect(
			XenForo_ControllerResponse_Redirect::SUCCESS,
			$this->getDynamicRedirect()
		);
 
Top Bottom