Hi,
This question (or rather similar questions) have been asked multiple times. I am still confused!
I have a cordova+vue+f7 app (opensource, https://github.com/dilawar/HippoApp) which is an android app as well as a web app. The web app is running here (https://ncbs.res.in/hippo). I generate it using cordova build --prod command. And I serve the resultant static site from www directory using apache server (This works well but not sure if this is the right way?).
Now, I want some links mapped to internal pages. For example https://ncbs.res.in/hippo/venue may open page /venue (defined in routes.js) or https://ncbs.res.in/hippo/events/upcoming may open /events/upcoming link. Currently users have to go to main page (https://ncbs.res.in/hippo) and navigate from there.
- Is it possible to do?
-
pushStateseems to do its job whencordova runis used on my local machine but my website breaks when I generate it usingcordova build --prod. I guesspushStatecan’t be used if serving with apache? - On the local machine, even with
pushStateenable, I am not able to redictedhttps://ncbs.res.in/hippo/#!/venuesto/venuesroute.? It showsGETerrror.
May be I am missing something fundamental? Any pointer to existing source code or kitchen sink example would greatly help.
cheers,
Dilawar