Fix navigation active link problem with iPad.