dosubot[bot] commented on issue #36000: URL: https://github.com/apache/superset/issues/36000#issuecomment-3490957974
<!-- Answer --> The dashboard's native filter state is managed in the FilterBar component, which updates the URL with the `native_filters_key` using `history.replace`—not `pushState`—so it should replace the last history entry rather than add a new one. This logic is here: [FilterBar/index.tsx](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx#L80-L140). The function only calls `history.replace` when on a dashboard route, aiming to keep React Router and browser history in sync and avoid race conditions. Despite this, the behavior you describe (needing to click back twice) suggests there may be an unexpected interaction or race condition elsewhere in the navigation or filter update flow. There are no recent changes or known issues in the codebase or support threads that directly address this, but the current implementation is intended to avoid adding extra history entries when updating `native_filters_key` in the URL. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/c2c3c8c5-66da-4e76-beb5-2586dc460dc0?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/c2c3c8c5-66da-4e76-beb5-2586dc460dc0?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/c2c3c8c5-66da-4e76-beb5-2586dc460dc0?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/c2c3c8c5-66da-4e76-beb5-2586dc460dc0?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/c2c3c8c5-66da-4e76-beb5-2586dc460dc0?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/c2c3c8c5-66da-4e76-beb5-2586dc460dc0?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/c2c3c8c5-66da-4e76-beb5-2586dc460dc0?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu b) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/36000) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
