Router refresh

I have a router that works when a button is clicked and routes to an item page. However, on publish, once on the router / item page, if you refresh the item page, you get a 404 error. Why is this?

Hi,

One simple thing to fix is that you may not have data in your live database.
Did you sync the items from the sandbox to the live database?
You can read more about it here:

My data has been synced. On the live versino fo the site, I can click on a button that routes to my router page when I set the request on the button settings. And it works, it’s only when I refresh that it breaks. I think it has something to do with spaces and hyphens in the link.

Can you paste in the url you get that breaks on refresh?

I resolved it! I had to change the way I was naming things in my database to have hyphens and the sitemap to the hyphenated names. Otherwise on the first load it uses %20 and when you refresh they are changed to hyphens. Fixed now though :slight_smile: thanks

Hi, it’s a bug on our end, glad you worked around it :slight_smile: