Fix notice in dm_handle_actions
Remove path since it doesn't exists in the database anymore
Fix get_original_url for when siteurl and home are different