Angularjs 为什么即使在HTML5模式下reloadOnSearch为false,angular ui路由器也会重新加载页面?

Angularjs 为什么即使在HTML5模式下reloadOnSearch为false,angular ui路由器也会重新加载页面?,angularjs,angular-ui-router,Angularjs,Angular Ui Router,我有一个角度应用程序,我使用ui路由器而不是HTML5模式,因此链接如下: example.com/#/dashboard example.com/#/about example.com/#/products?id=12 example.com/dashboard example.com/about example.com/products?id=12 在产品页面中,我有reloadOnSearch设置为false,当我直接从url栏更改id搜索参数时,它不会重新加载页面,我通过$locat

我有一个角度应用程序,我使用ui路由器而不是HTML5模式,因此链接如下:

example.com/#/dashboard
example.com/#/about
example.com/#/products?id=12
example.com/dashboard
example.com/about
example.com/products?id=12
在产品页面中,我有reloadOnSearch设置为false,当我直接从url栏更改id搜索参数时,它不会重新加载页面,我通过$locationChangeSuccess事件处理该问题,它对我很有效

现在的问题是,在我将我的应用程序更改为HTML5模式后,链接变成如下:

example.com/#/dashboard
example.com/#/about
example.com/#/products?id=12
example.com/dashboard
example.com/about
example.com/products?id=12
一切都很好,但是当我更改idsearch参数时,页面会被完全重新加载,即使我将reloadOnSearch设置为true


有任何防止重新加载的建议吗?

您是否通过在“位置”字段中键入来手动更改URL?是的,但只需搜索参数(在我的示例中为id)您是否通过在“位置”字段中键入来手动更改URL?是的,但只需搜索参数(在我的示例中为id)