mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-05 03:18:44 +00:00
Use <base> element to set target
This commit is contained in:
parent
dd23ac4867
commit
e9f5e0cab5
7 changed files with 40 additions and 34 deletions
|
@ -189,6 +189,7 @@ func (svc *service) ServeNavPage(ctx context.Context, c *model.Client) (err erro
|
|||
}
|
||||
|
||||
commonData := svc.getCommonData(ctx, c, "Nav")
|
||||
commonData.Target = "main"
|
||||
data := &renderer.NavData{
|
||||
User: u,
|
||||
CommonData: commonData,
|
||||
|
@ -422,6 +423,7 @@ func (svc *service) ServeNotificationPage(ctx context.Context, c *model.Client,
|
|||
|
||||
commonData := svc.getCommonData(ctx, c, "notifications")
|
||||
commonData.AutoRefresh = c.Session.Settings.AutoRefreshNotifications
|
||||
commonData.Target = "main"
|
||||
data := &renderer.NotificationData{
|
||||
Notifications: notifications,
|
||||
UnreadCount: unreadCount,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue