refactor: #941970 Only set router rebuild needed when something related to routing actually changes

Closes #941970

Merge request reports

Loading