(ritual)

As two actions, you sense the direction and general distance to the nearest teleportation circle, gate, planar portal, or other effect which magically connects two different locations within 2 kilometers of you.

This spell can be blocked by any intervening area that is dimensionally warded (such as by forbiddance).