|
@@ -54,7 +54,7 @@ var (
|
|
|
|
|
|
func (pp PathPattern) RedirectPath(model string, id ...uint) string {
|
|
|
if len(id) > 0 {
|
|
|
- return fmt.Sprintf(pp.RedirectPattern, model, strconv.Itoa(int(id[0])), model)
|
|
|
+ return fmt.Sprintf(pp.RedirectPattern, model, id[0], model)
|
|
|
}
|
|
|
return fmt.Sprintf(pp.RedirectPattern, model, model)
|
|
|
}
|