Having an issue with main layout and index content page in NodeJs project

Thanks George, it fixed the issue, but when i recreate the index.ejs or main_template.ejs
it does not removing the old route. or if i use different names for the layout page it keeps the deleted ones route. so route.json is the problem.

As i saw by default index.ejs is there when i edit that to set layout page then also it keeps the old route for that page… thats why i went into this issue…

fixed one:

1 Like

How did you recreate those pages?

In file explore choosed Pages and then under layouts i just deleted the layout page, and then selecting Pages(/Views) then deleted the index page. again created the same way. Also i have tried this way as well, Going to Files and then deleted the index.ejs, main_template.ejs in appropriate places and created through Pages(/Views).

Both ways route.json was keeping the old routes either way if i choose different page names or not.

Will see if we can improve the routes cleanup indeed so this doesn’t happen

1 Like