[BUGFIX] Properly detect record link dialog tab