File tree 4 files changed +4
-4
lines changed
templates/user/notification
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) {
186
186
if ctx .Written () {
187
187
return
188
188
}
189
- ctx .Data ["Link" ] = setting .AppURL + "notifications"
189
+ ctx .Data ["Link" ] = setting .AppSubURL + "/ notifications"
190
190
ctx .Data ["SequenceNumber" ] = ctx .Req .PostFormValue ("sequence-number" )
191
191
192
192
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}}">
2
2
<div class="ui container">
3
3
{{$notificationUnreadCount := call .NotificationUnreadCount}}
4
4
<div class="gt-df gt-ac gt-sb gt-mb-4">
Original file line number Diff line number Diff line change 1
1
{{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">
3
3
<div class="ui container">
4
4
<div class="ui top attached tabular menu">
5
5
<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() {
165
165
if ( notificationDiv . length > 0 ) {
166
166
const data = await $ . ajax ( {
167
167
type : 'GET' ,
168
- url : `${ appSubUrl } /notifications? ${ notificationDiv . data ( 'params' ) } ` ,
168
+ url : `${ appSubUrl } /notifications${ window . location . search } ` ,
169
169
data : {
170
170
'div-only' : true ,
171
171
'sequence-number' : ++ notificationSequenceNumber ,
You can’t perform that action at this time.
0 commit comments