code: func (p *Paths) GetBasePath(isRelativeURL bool) string {
  	if isRelativeURL && p.CanonifyURLs {
  		// The baseURL will be prepended later.
  		return ""
  	}
  	return p.BasePath
  }
docs: // GetBasePath returns any path element in baseURL if needed.