Skip to content

Commit

Permalink
Fix Bug 69227 - Notification. The login page opens when you click on …
Browse files Browse the repository at this point in the history
…links from notifications under an authorized user
  • Loading branch information
AlexeySafronov committed Jul 15, 2024
1 parent c9488e3 commit 7bf4b77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/nginx/onlyoffice.conf
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ server {
local accept_header = ngx.req.get_headers()["Accept"]
if ngx.req.get_method() == "GET" and accept_header ~= nil and string.find(accept_header, "html") and not ngx.re.match(ngx.var.request_uri, "ds-vpath|/api/") then

if not ngx.re.match(ngx.var.request_uri, "login|sdk|filehandler|thirdparty|confirm|error|wizard|preparation-portal|unavailable|share=.|rooms/share(.*)key=.|/s/*|token=.|complete=.") then
if not ngx.re.match(ngx.var.request_uri, "login|sdk|filehandler|thirdparty|confirm|error|wizard|preparation-portal|unavailable|notifications|share=.|rooms/share(.*)key=.|/s/*|token=.|complete=.") then
if ngx.var.http_cookie == nil or not string.find(ngx.var.http_cookie, "asc_auth_key") then
if ngx.var.request_uri == "/" then
return ngx.redirect("/login")
Expand Down

0 comments on commit 7bf4b77

Please sign in to comment.