Please refer to the following post for the derivation steps that show the gradients for a linear regression and a logistic regression do look the same.
In particular, if you look at the second table, you will see clearly that the denominator term generated in the Logistic Regression due to the loss function gets canceled out, thanks to the Sigmoid function. After the cancellation, the terms between linear regression and logistic regression no longer look any different.