So looking at https://html.spec.whatwg.org/#runtime-script-errors I don't think filename is censored. Unfortunately the way filename is defined is too vague and would allow for an interpretation that it's the one after redirects.
Bug 1624449 Comment 14 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
So looking at https://html.spec.whatwg.org/#runtime-script-errors <del title=oops>I don't think</del> filename is censored. Unfortunately the way filename is defined is too vague and would allow for an interpretation that it's the one after redirects.