Skip to Content

Browser refreshing issue With SAP UI5 Router

Hello,

I have a issue with refreshing the page which is loaded using SAPUI5 router.

For example : below is the URI which am accessing.

Host:Port//sap/bc/ui5_ui5/sap/zDemo/index.html?sap-ui-language=EN#/Test1?SrNum=0001

Here in the above case if i change the number to 0002 in the browser URL and pressed enter, then if i checked in network tab of developer tools. Only it is loading the service calls and updating the data in the UI . But my requirement is to load the complete application including view manifest and other files as well. ( Like if you press F5 or Ctrl+F5).

if i reload the application with Ctrl+F5 it is working as expected.

Could you please suggest me how can i overcome with this issue.

Best Regards,

Bhaskar.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jul 06, 2017 at 09:56 AM

    Hi,

    Try the following code: window.location.reload()

    regards

    GB

    Add comment
    10|10000 characters needed characters exceeded

    • Actually, i can navigate to that page multiple times so I can't directly write a global variable check since if I navigate to that page second time it will reload the application again.

      But I want to reload only in case of when user press Enter in Browser URL after changing the value in the route.

      Best Regards,

      Bhaskar.