I have tried this suggestion and unfortunately, it is still not working. I duplicated the course and it directs to a 404 page. Then I created the course again from scratch and just added a few lessons to test it and then published it and it still directed to a 404 page.