No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Help to build a project with correct routes

    Help
    1
    1
    354
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      peterPanParker last edited by peterPanParker

      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/home

      How should i configure the building routes? what am i doing wrong? how do i fix uris?
      thanks in advance

      1 Reply Last reply Reply Quote 0
      • First post
        Last post