Created a directive to control link active toggle on path change