Help to build a project with correct routes
-
Hi
Iam trying to configure a quasar project distribution routes, in my quasar.conf.js i have set in build object this publicPath:http://localhost/pmt/client/dist/spa-mat/
my main project folder is pmt which is in htdocs of an apache server, inside this i have codeigniter’s folders and in the same level i have put a folder with name ‘client’ in which i have quasar project…
when i work with devserver i have no problem, when i build it under client/dist/spa-mat/ the index.php generated takes the publicPath and prepend it to the resources which is ok… but then when i request an axios service using just apache server and not devServer with the build generated (in login for example) it takes the base tag too (or publicPath) and prepended to my services calls which get malformed because it must have the next shape:
http://localhost/pmt/index.php/controller/method/
and are created as:
http://localhost/pmt/client/dist/spa-mat/index.php/controller/method/so i changed base tag (of the index.php generated) to http://localhost/pmt/ and copy the dist files to pmt/ (to find the resources) and it seems to work, but i don’t know if is it correct, because urls are strange after the user is loged in:
http://localhost/http:/localhost/pmt/client/dist/spa-mat/pmt/home/
and should be like this:
http://localhost/pmt/homeHow should i configure the building routes? what am i doing wrong? how do i fix uris?
thanks in advance