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

    how to get port value from preFetch ssrContext

    Help
    2
    2
    149
    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.
    • iamike
      iamike last edited by iamike

      I want redirect the user to a specific domain if he is not using correct protocol
      for example:

      if (ssrContext.req.headers.host=='hexin-medical.net'||ssrContext.req.headers.host=='hexin-medical.com'){
              redirect('https://www.hexin-medical.net')
            }
      

      Thanks

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        Wouldn’t that be better on the server itself? So, redirects within the web server?

        Scott

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