I believe I may have found a bug in Mozilla in writing this. According to the documentation,
history.go(location) should load the nearest history entry whose URL contains location as a substring (the most recently visited). Mozilla appears to be loading the first history entry that has that substring (the first one visited). Or so it seemed.