I created a related nodes block with views.
Everything seems good but there is one problem that I couldn't find a solution for days.
The views has Content: Has taxonomy term ID (with depth) as contextual filter.
If a node has only one taxonomy term there is no problem and the related views block shows the related nodes tagged with the same taxonomy term.
But if a node has multiple taxonomy terms, the related nodes block shows all the nodes that are tagged with any of the taxonomy terms although I selected the Filter to items that share all terms option.
Is there any way to solve this problem?