The new page leads to 404

I specify all the data for the new page in the settings, and when the link is redirected to 404

js/routes.js
{
path: ‘/camera/’,
url: ‘./pages/camera.html’,
},

home.html

<a href="/camera/" class="link">

camera.html

 <template>
<div class="page" data-name="camera">
  <div class="navbar">

I don’t understand why switching to a new page doesn’t work, I can’t continue working because of this

Hello,

you can make it better if you add import CameraPage from ‘. ./pages/camera.f7.html’;
and then

path: ‘/camera/’,
url: CameraPage,

Or try: ‘. ./pages/camera.html’,
I think you are missing one “.” before ./pages/camera.html

2 Likes

Thank you, it helped me.

import CameraPage from ‘…/pages/camera.f7.html’;

{
path: ‘/camera/’,
component: CameraPage,
}

I added f7 in the file name and everything worked