Forum Discussion
Power BI Client for React and Browser History
- Anonymous1 year ago
Hi jamesbla-ms ,
You might consider trying to use the history.replaceState method when you first start loading the report to replace the current history entry with a new one, preventing the creation of additional entries.
// Before loading the report history.replaceState(null, document.title, location.href); // Load the Power BI report powerbi.embed(reportContainer, embedConfig);And you may also try to check your embed configuration is optimized to avoid unnecessary navigation changes. Sometimes, tweaking the configuration can help reduce unwanted history entries.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi jamesbla-ms ,
You might consider trying to use the history.replaceState method when you first start loading the report to replace the current history entry with a new one, preventing the creation of additional entries.
// Before loading the report
history.replaceState(null, document.title, location.href);
// Load the Power BI report
powerbi.embed(reportContainer, embedConfig);
And you may also try to check your embed configuration is optimized to avoid unnecessary navigation changes. Sometimes, tweaking the configuration can help reduce unwanted history entries.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly