Skip to content

Commit

Permalink
fix: Handling preferences cookies on share
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Jan 21, 2024
1 parent a22fd0f commit ff4b927
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/fibr/fibr.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ func (s Service) parseRequest(r *http.Request) (provider.Request, error) {
return request, model.WrapUnauthorized(err)
}

if len(r.URL.Query().Get("d")) == 0 {
request.Display = request.LayoutPath(request.AbsoluteURL(""))
}

request = request.UpdatePreferences()

if !request.Share.IsZero() {
Expand Down

0 comments on commit ff4b927

Please sign in to comment.