mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 19:30:55 +00:00
Merge pull request #733 from liulixiang1988/develop
improve the 'geturl'
This commit is contained in:
commit
b5a2347e1d
@ -459,7 +459,7 @@ func (p *ControllerRegistor) geturl(t *Tree, url, controllName, methodName strin
|
||||
if find {
|
||||
if l.regexps == nil {
|
||||
if len(l.wildcards) == 0 {
|
||||
return true, strings.Replace(url, "/"+url_placeholder, "", 1)
|
||||
return true, strings.Replace(url, "/"+url_placeholder, "", 1) + tourl(params)
|
||||
}
|
||||
if len(l.wildcards) == 1 {
|
||||
if v, ok := params[l.wildcards[0]]; ok {
|
||||
|
Loading…
Reference in New Issue
Block a user