aboutsummaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2020-02-23 13:26:39 +0000
committerr <r@freesoftwareextremist.com>2020-02-23 18:01:50 +0000
commite9f5e0cab55a8a92575139788ffb003ed5d4f576 (patch)
treef6b858d4dc5a7eb623bd139713eacd2faea17ef1 /service
parentdd23ac48678c704949074dd0e41bb8a3550cc33f (diff)
downloadbloat-e9f5e0cab55a8a92575139788ffb003ed5d4f576.tar.gz
bloat-e9f5e0cab55a8a92575139788ffb003ed5d4f576.zip
Use <base> element to set target
Diffstat (limited to 'service')
-rw-r--r--service/service.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/service/service.go b/service/service.go
index 9e01509..4316f86 100644
--- a/service/service.go
+++ b/service/service.go
@@ -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,