[_]
This commit is contained in:
parent
4bc84c3623
commit
26b03fe8a0
1 changed files with 9 additions and 1 deletions
|
|
@ -141,7 +141,15 @@ func (page *Page) Link(r *Request) string {
|
|||
paths = append(paths, part)
|
||||
}
|
||||
|
||||
return filepath.Join(paths...)
|
||||
url := filepath.Join(paths...)
|
||||
if r.Query != nil {
|
||||
query := r.Query.Encode()
|
||||
if query != "" {
|
||||
url = url + "?" + query
|
||||
}
|
||||
}
|
||||
|
||||
return url
|
||||
}
|
||||
|
||||
// ReplaceDocument replace the document
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue