Help with wix location .to on live site

Currently I have a dynamic page that I want featured in the menu. In order to do this I decided to create a blank stub page and use wix location . to in order to route directly to my dynamic page. It works perfectly in preview, however when I go live it gives me a page not found error. Can anyone please lend a hand? I double checked the correct URL a thousand times and it looks perfect.

// For full API documentation, including code examples, visit https://wix.to/94BuAAs
import wixLocation from 'wix-location';
$w.onReady(function () {
 //TODO: write your page related code here...
    wixLocation.to("/sierracountyevents");
    console.log("/sierracountyevents");
});

Hi,

I would definitely be able to look into this but first, please send the URL of the site so I can take a look at exactly what’s happening on the live site.

Thank you,
Edward

https://nicholasbspano.wixsite.com/scvb/sierracountyevents

Hi,

I checked to see if your sandbox database for SierraCountyEvents was synced to the live database and it looks like the live database needs to be synced. This might be the reason why the 404 is showing up. Follow the information here to sync your sandbox database to the live site and publish the site one more time to be sure all the bases are covered.

I tested it out on completely different site and that should resolve the 404 issue.

Best Regards,
Edward

Thank you so much that worked perfectly. Imust have just overlooked that step.