Hi,
Are you also using a lidar? Yellow loop closures are proximity detections, which act like loop closures but are found by proximity to the current location. The pink path are the nodes corresponding to the localization session.
Green loop closures are those found with the camera. Changing the URDF is fine when attaching the camera to another place on the robot, though doing so the point of view may have changed, adding more difficulty to detect visual loop closures (green). If you have a lidar, maybe the lidar proximity detection was taking over instead. So yes, it could be indeed a problem if the camera cannot be used to find visual loop closures anymore. While lidar proximity detection can work when the robot is already roughly localized, it cannot handle the "kidnapped robot problem" like visual loop closure detection does.
See also
https://github.com/introlab/rtabmap/discussions/1575#discussioncomment-14357237 for the color code.