File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
templates/user/notification Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ func NotificationStatusPost(ctx *context.Context) {
186186 if ctx .Written () {
187187 return
188188 }
189- ctx .Data ["Link" ] = setting .AppURL + "notifications"
189+ ctx .Data ["Link" ] = setting .AppSubURL + "/ notifications"
190190 ctx .Data ["SequenceNumber" ] = ctx .Req .PostFormValue ("sequence-number" )
191191
192192 ctx .HTML (http .StatusOK , tplNotificationDiv )
Original file line number Diff line number Diff line change 1- <div role="main" aria-label="{{.Title}}" class="page-content user notification" id="notification_div" data-params="{{.Page.GetParams}}" data- sequence-number="{{.SequenceNumber}}">
1+ <div role="main" aria-label="{{.Title}}" class="page-content user notification" id="notification_div" data-sequence-number="{{.SequenceNumber}}">
22 <div class="ui container">
33 {{$notificationUnreadCount := call .NotificationUnreadCount}}
44 <div class="gt-df gt-ac gt-sb gt-mb-4">
Original file line number Diff line number Diff line change 11{{template "base/head" .}}
2- <div role="main" aria-label="{{.Title}}" class="page-content user notification" id="notification_subscriptions" data-params="{{.Page.GetParams}}" data-sequence-number="{{.SequenceNumber}}" >
2+ <div role="main" aria-label="{{.Title}}" class="page-content user notification">
33 <div class="ui container">
44 <div class="ui top attached tabular menu">
55 <a href="{{AppSubUrl}}/notifications/subscriptions" class="{{if eq .Status 1}}active {{end}}item">
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ async function updateNotificationTable() {
165165 if ( notificationDiv . length > 0 ) {
166166 const data = await $ . ajax ( {
167167 type : 'GET' ,
168- url : `${ appSubUrl } /notifications? ${ notificationDiv . data ( 'params' ) } ` ,
168+ url : `${ appSubUrl } /notifications${ window . location . search } ` ,
169169 data : {
170170 'div-only' : true ,
171171 'sequence-number' : ++ notificationSequenceNumber ,
You can’t perform that action at this time.
0 commit comments