Fixes pages sidebar link active condition