Franchises switch cities in every sport and all of the time. Basically the only time the history has not moved with the team was when the city of Cleveland sued to keep the Browns name AND history when the old Browns became the Ravens.
And what is the distance that matters. The Patriots used to be the Boston Patriots, playing in Boston. Then they moved out of Boston and became the New England Patriots. So is 22 miles close enough to keep the history? What about the Giants, they moved from NY to NJ, ok to keep the name and history? Or the Nets moving from NJ to NY, ok to keep name and history?
The LA Dodgers have had a bunch of different names and cities. Cleveland Guardians just changed their name again, do they not get to count the Indians 2 championships because they are now the Guardians? Do the Braves not get to count the 2 from Boston or the 1 from Milwaukee, so they just have 2 titles and not 5?
It is all just silly nonsense. The Lakers franchise has 17 titles. 12 were won while the franchise was in LA, 5 while the franchise was in Minneapolis, but it is still 17 titles for the franchise.