Han, in his infinite wisdom, didn't even believe Leia when she said they were being tracked.
"Not this ship, sister."
The promise of a nice chunk of change for rescuing Leia was probably looming larger in his mind than the peril of heading for the secret base. He did owe Jabba a lot of money.