mirror of
https://github.com/kataras/iris.git
synced 2025-03-14 10:56:29 +01:00
Fix semantic typo for Redirection via Route name
This commit is contained in:
parent
d2ec0fa3e4
commit
c443dc9808
2
iris.go
2
iris.go
|
@ -577,7 +577,7 @@ func (s *Framework) URL(routeName string, args ...interface{}) (url string) {
|
||||||
arguments = arguments[1:]
|
arguments = arguments[1:]
|
||||||
}
|
}
|
||||||
|
|
||||||
if parsedPath := Path(routeName, arguments...); parsedPath != "" {
|
if parsedPath := s.Path(routeName, arguments...); parsedPath != "" {
|
||||||
url = scheme + host + parsedPath
|
url = scheme + host + parsedPath
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user