I've developed an extension for my SuiteCommerce A...
# suitecommerce
r
I've developed an extension for my SuiteCommerce Advanced (SCA) website that includes a route called /blog. When I click on the blog link from within the website, it works fine. However, when I try to reload the page or access the /blog URL directly from the address bar, the network request returns a 404 error for the blog document. Despite this, the page still loads and correctly displays the data. Has anyone else encountered this issue or have any insights on how to resolve it? Any help would be greatly appreciated!
s
When are you creating the route? It should be done as early as possible in the application load process – namely in your entry point's mountToApp() function.
r
Hi Steve, In my entry point file, I am importing the necessary dependencies, including the router, and I'm setting it up to instantiate the router when the application mounts.