Are the broken links you are experiencing in the Section Summary areas of the course, or somewhere else? Also, when you look at the broken url on the live server, is the link pointing to the live server name or the test server name? From the way you described putting in the 5 in the url to get the links to work, I suspect it may be pointing to the test server.
Backup and restore
restored course - course id is wrong
This discussion has been locked so you can no longer reply to it.