Skip to content

Commit 12de38e

Browse files
committed
update
1 parent 1f10f59 commit 12de38e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

context_x_base.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,9 +487,9 @@ func (c *XContext) URLFor(uri string, relative ...bool) string {
487487
}
488488

489489
func (c *XContext) URLByName(name string, args ...interface{}) string {
490-
return c.echo.URIWithContext(c, name, args...)
490+
return c.siteRoot() + c.echo.URIWithContext(c, name, args...)
491491
}
492492

493493
func (c *XContext) RelativeURLByName(name string, args ...interface{}) string {
494-
return c.echo.MakeRelativeURL(c.echo.URIWithContext(c, name, args...), true)
494+
return c.echo.URIWithContext(c, name, args...)
495495
}

0 commit comments

Comments
 (0)