U need to watch for few things, history of Muslim rulers/ conquerer is greartly distorted and fabricated during British Raj of Subcontinent…
it is Muslims of Indo-Pak region who somehow managed to keep track otherwise in Central Asia, Muslims were totally denied any access to their history.
During British Raj, it was common thing to make fun of ex-rulers of Sub Continent…for instance even today’s army formation of Pakistan, Sobay-dar, Jamadaar etc are under the commissioned officers, whereas they were governor and Colonel level officers in Sub-continent army formation.
Many were affected and they did accepted what was told to them about Muslim invaders..specially about Mehmood Of Ghazna…but these critics often go silence when you ask them why did Mehmood attacked Somnaath if looting was all he wanted???..
See the route of Somnath from Ghazni, desert and desert only…the opponents could have simply killed the whole Ghazni army by ambushing them and destroying their water reserves…2ndly, no bigger or important temple in the way… So why he tried for Somnaath???
Muslim invaders did have lust for land, they do wanted to expand their kingdoms…and that was the trend then and even now…