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