Disable pin redirection when editing private file

From #3942.