diff --git a/mon-pix/app/components/download-session-results.gjs b/mon-pix/app/components/download-session-results.gjs index 1e727722038..e60eaf8535f 100644 --- a/mon-pix/app/components/download-session-results.gjs +++ b/mon-pix/app/components/download-session-results.gjs @@ -20,7 +20,7 @@ export default class DownloadSessionResults extends Component { this.showErrorMessage = false; try { - const token = decodeURIComponent(PixWindow.getLocationHash().slice(1)); + const token = decodeURIComponent(PixWindow.getLocationHash().slice(1, -8)); await this.fileSaver.save({ url: `${ENV.APP.API_HOST}/api/sessions/download-all-results`, options: {