Routing of static pages with reactioncommerce


#1

I have a static Faq page which I registered in the registry as in the Plugin example.

I registered it as following:
{
route: “/about”,
name: “about”,
template: “aboutUs”,
workflow: “coreWorkflow”
},
{
route: “/mycompanyFaq”,
name: “mycompanyFaq”,
template: “mycompanyFaq”,
workflow: “coreWorkflow”
},

But when I link them with <a href="/about" or “/mycompanyFaq” it doesn’t work. But they are accessible through <a href=“reaction/about” or localhost:3000/reaction/mycompanyFaq. What is it what I do wrong?


#2

The reaction here is the store identifier. If you only have one store in the Shops collection then you will no longer need the shop identifier.