Weblink to f7 specific page

Hello,
does anyone know how to open a specific page of a Framework7 web application directly via a standard web link?
For example:
https://mywebapp.xyz/#/legalconditions
https://mywebapp.xyz/legalconditions

I’m working on an web application where, after a button is clicked, the user should be redirected to my F7 web app at the specific page /legalconditions/

I tried all combinations by varying the following parameters, but none of them worked.

Does anyone know how to do it properly?

---- Modification in app.js file : ---------
var app = new Framework7({
name: ‘VedoVado’, // App name
theme: ‘auto’, // Automatic theme detection
el: ‘#app’, // App root element
component: App, // App main component
view: {
pushState: true, // enables history API routing. [true/false]
pushStateRoot: ‘/’, // base path of your app
},
// App routes
routes: routes,
});
export { app }

----------- Modification in routes.js: -----------------------
var routes = [
{
path: ‘/’,
component: HomePage,
},


{
path: ‘/legalconditions/’,
component: pagelegalconditions,
// componentUrl: ‘./pages/legalconditions.f7’, // test 1: internal appweb menu links do not properly work
// url: ‘./pages/legalconditions.f7’, // test 2: ,internal appweb menu links in do not properly work
},

{
path: ‘(.*)’,
component: NotFoundPage,
},
];
-------- modifications in server .htaccess file: --------------------

RewriteEngine On
#RewriteCond %{REQUEST_FILENAME} !-f [OR] commented since error in webapp on fetching data
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^ - [L]

Redirect everything else to index.html

RewriteRule ^ index.html [L]

Hi,

Please check this solution: How to create url or route like mysite.com/about using corejs - #2 by pmsgz

Hello,
thanks for this link.
I did all changes. Navigating through the app pages I can now see the f7 link in the browser bar like www.myapp.xzy/legalnote/. However, directly typing the link in the browser bar I get a white page or the error : Forbidden You don’t have permission to access this resource.

After quite a bit of trial and error, I finally found a solution that works.
It only works when setting browserHistorySeparator: ‘#page/’ exactly as shown in the documentation example.
The link becomes then : https://www.mywebapp.xzy/#page//legalnote/

I guess this is a bug in f7 routes