Check if the current location is already /object
before pushing
final currentLocation = GoRouter.of(context).location;
if (currentLocation != '/object') {
context.push('/object');
}
This ensures you don't push the same screen twice if it's already open.