Django integration does not respect SCRIPT_NAME
How do you use Sentry?
Self-hosted/on-premise
Version
self-hosted-23.11.2
Steps to Reproduce
- Django setup with
SCRIPT_NAME=/foo/barunder domainexample.net - Full url
https://example.net/foo/bar/ - Triggern an error in a view
https://example.net/foo/bar/my-view/ - URL in Sentry UI is just
https://example.net/my-view/, missing theSCRIPT_NAME
Expected Result
URL should respect SCRIPT_NAME and the link in the UI should be https://example.net/foo/bar/my-view/
Actual Result
URL in Sentry UI is just https://example.net/my-view/
Hey @ethrgeist ! Thanks for reporting this. Makes total sense. I put it on our list, but also marked it as good first issue and help wanted, so maybe someone wants to jump on this.
Apologies for the multiple PRs, got a bit confused but it seems like we need to add the Trigger: tests using secrets label to the PR in order for checks to pass. Could anyone help me out with that?
Apologies for the multiple PRs, got a bit confused but it seems like we need to add the
Trigger: tests using secretslabel to the PR in order for checks to pass. Could anyone help me out with that?
Yes @sarvaSanjay – only maintainers can add this label. We will add the label once all other tests are passing and the change has been approved.
I took a look at your PR and added some comments. Once you address these comments and get the tests to pass, we can hopefully get this change merged.