go-aah / aah

A secure, flexible, rapid Go web framework
https://aahframework.org
MIT License
691 stars 33 forks source link

Fix route URL generation for single domain scenario #213

Closed jeevatkm closed 6 years ago

jeevatkm commented 6 years ago

The goal is to fix route URL generation for single domain. In v0.11.0 hassle free configuration for non-dev profile #163 introduced, that brought this bug.

Current: //localhost[:port]/[path]

Expected: //correctdomainname[:port]/[path]

Workaround till this bug fix gets released; is to define domain mapping in prod profile (or in appropriate profile):

prod {
  routes {
    domains {
      <config-section-name> {
        host = "<your-domain-name>"
        port = "<port-no>"  
      }
    }
  }
}
jeevatkm commented 6 years ago

Fixed 😄