Skip to content

Commit 799b3f1

Browse files
committed
more request.env changes for passenger
1 parent e99015b commit 799b3f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/initializers/thredded.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def set_navbar_actions
216216
@navbar_actions << {
217217
label: 'Discussions',
218218
href: discussions_link,
219-
class: ForumsLinkbuilderService.is_discussions_page?(request.env['REQUEST_PATH']) ? 'active' : nil
219+
class: ForumsLinkbuilderService.is_discussions_page?(request.env['REQUEST_PATH'] || request.fullpath) ? 'active' : nil
220220
}
221221
end
222222

@@ -238,7 +238,7 @@ def set_sidenav_expansion
238238
private
239239

240240
def related_content_type
241-
current_path = request.env['REQUEST_PATH']
241+
current_path = request.env['REQUEST_PATH'] || request.fullpath
242242
match = ForumsLinkbuilderService.content_to_url_map.detect { |key, base_url| current_path.start_with?(base_url) }
243243

244244
if match

0 commit comments

Comments
 (0)