DEV: Include controller namespace in X-Discourse-Route (#29783)

* DEV: Include controller namespace in X-Discourse-Route

* use same separator
This commit is contained in:
Osama Sayegh
2024-11-29 09:11:17 +03:00
committed by GitHub
parent fd2a82f41a
commit 1497b298d2
2 changed files with 17 additions and 1 deletions

View File

@ -365,7 +365,7 @@ class ApplicationController < ActionController::Base
Logster.add_to_env(request.env, "username", current_user.username)
response.headers["X-Discourse-Username"] = current_user.username
end
response.headers["X-Discourse-Route"] = "#{controller_name}/#{action_name}"
response.headers["X-Discourse-Route"] = "#{controller_path}/#{action_name}"
end
def set_mp_snapshot_fields