Skip to content

Commit c9a08dd

Browse files
committed
update
1 parent ba86ef7 commit c9a08dd

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

context_x_base.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,8 @@ func (c *XContext) RelativeURL(uri string) string {
479479
return c.echo.uriAddLangCode(c, c.echo.MakeRelativeURL(uri, false))
480480
}
481481

482-
func (c *XContext) URLFor(uri string, abs ...bool) string {
483-
if len(abs) > 0 && abs[0] {
482+
func (c *XContext) URLFor(uri string, relative ...bool) string {
483+
if len(relative) > 0 && relative[0] {
484484
return c.RelativeURL(uri)
485485
}
486486
return c.siteRoot() + c.echo.uriAddLangCode(c, c.echo.MakeRelativeURL(uri, false))

register.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ type Prefixer interface {
9090

9191
type URLGenerator interface {
9292
RelativeURL(uri string) string
93-
URLFor(uri string, abs ...bool) string
93+
URLFor(uri string, relative ...bool) string
9494
URLByName(name string, args ...interface{}) string
9595
RelativeURLByName(name string, args ...interface{}) string
9696
}

render_data.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,8 @@ func (r *RenderData) RelativeURL(uri string) string {
298298
return r.ctx.RelativeURL(uri)
299299
}
300300

301-
func (r *RenderData) URLFor(uri string, abs ...bool) string {
302-
return r.ctx.URLFor(uri, abs...)
301+
func (r *RenderData) URLFor(uri string, relative ...bool) string {
302+
return r.ctx.URLFor(uri, relative...)
303303
}
304304

305305
func (r *RenderData) URLByName(name string, args ...interface{}) string {

0 commit comments

Comments
 (0)