diff --git a/iris.go b/iris.go index dae55cb9..27371eb4 100644 --- a/iris.go +++ b/iris.go @@ -577,7 +577,7 @@ func (s *Framework) URL(routeName string, args ...interface{}) (url string) { arguments = arguments[1:] } - if parsedPath := Path(routeName, arguments...); parsedPath != "" { + if parsedPath := s.Path(routeName, arguments...); parsedPath != "" { url = scheme + host + parsedPath }