Fixes #5887: You can now select correctly a directive kind in directive page