commit
625cd2bad5
1 changed files with 5 additions and 4 deletions
|
|
@ -34,16 +34,17 @@ func (page *Page) EditorRender() (*ResponseEditorRender, error) {
|
|||
|
||||
// Render the page
|
||||
request := NewRequestMock(page.Config.Mock)
|
||||
link := page.Link(request)
|
||||
if request.URL.Path == "" {
|
||||
request.URL.Path = link
|
||||
}
|
||||
|
||||
// Set Default Sid
|
||||
if request.Sid == "" {
|
||||
request.Sid, _ = page.Sid()
|
||||
}
|
||||
|
||||
link := page.Link(request)
|
||||
if request.URL.Path == "" {
|
||||
request.URL.Path = link
|
||||
}
|
||||
|
||||
// Render tools
|
||||
// res.Scripts = append(res.Scripts, filepath.Join("@assets", "__render.js"))
|
||||
// res.Styles = append(res.Styles, filepath.Join("@assets", "__render.css"))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue