<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Restrict browser refresh or navigate user home screen when refresh is pressed in browser in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/restrict-browser-refresh-or-navigate-user-home-screen-when-refresh-is/qaa-p/12054371#M4504665</link>
    <description>&lt;P&gt;Hi &lt;A href="https://answers.sap.com/users/8651/karthik.s31.html"&gt;Karthik S&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If that is the case, then check in routematched event handler method if the data is there or not and you can trigger navigation again to the home page.&lt;/P&gt;&lt;P&gt;But it also looks like you dont' need routing as routing is needed in the scenarios when user clicks on refresh button and instead of navigating to the home page you will show the same page by requesting the new data.&lt;/P&gt;&lt;P&gt;So if you don't want that then better don't use navigation or don't use route patterns, just display page by using targets(without changing the hash).&lt;/P&gt;&lt;P&gt;&lt;A href="https://ui5.sap.com/#/topic/d9efab307ecc42b180b12cc8956e22d7"&gt;https://ui5.sap.com/#/topic/d9efab307ecc42b180b12cc8956e22d7&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;</description>
    <pubDate>Thu, 05 Dec 2019 10:06:58 GMT</pubDate>
    <dc:creator>maheshpalavalli</dc:creator>
    <dc:date>2019-12-05T10:06:58Z</dc:date>
    <item>
      <title>Restrict browser refresh or navigate user home screen when refresh is pressed in browser</title>
      <link>https://community.sap.com/t5/technology-q-a/restrict-browser-refresh-or-navigate-user-home-screen-when-refresh-is/qaq-p/12054366</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
  &lt;P&gt;I am facing an issue when user press browser refresh button. My app is a splitapp which has three navigation from home screen. When User navigated to third screen, they are selecting the browser refresh button. Now, when they go to home screen by selecting browser back button, data presented in the view are empty. How can I restrict user from selecting the browser refresh. Is this a basic behavior of an app? How to overcome this issue?&lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;
  &lt;P&gt;Karthik S&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 19:25:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/restrict-browser-refresh-or-navigate-user-home-screen-when-refresh-is/qaq-p/12054366</guid>
      <dc:creator>former_member190063</dc:creator>
      <dc:date>2019-12-04T19:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict browser refresh or navigate user home screen when refresh is pressed in browser</title>
      <link>https://community.sap.com/t5/technology-q-a/restrict-browser-refresh-or-navigate-user-home-screen-when-refresh-is/qaa-p/12054367#M4504661</link>
      <description>&lt;P&gt;Hi Karthik&lt;/P&gt;&lt;P&gt;Do you have in the url the relevant parameters that are needed to read again the data? Do you use routing? &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1753598-0412-01.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1753599-0412-02.png" /&gt;&lt;/P&gt;&lt;P&gt;Saludos&lt;/P&gt;&lt;P&gt;Raquel&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 19:38:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/restrict-browser-refresh-or-navigate-user-home-screen-when-refresh-is/qaa-p/12054367#M4504661</guid>
      <dc:creator>former_member312987</dc:creator>
      <dc:date>2019-12-04T19:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict browser refresh or navigate user home screen when refresh is pressed in browser</title>
      <link>https://community.sap.com/t5/technology-q-a/restrict-browser-refresh-or-navigate-user-home-screen-when-refresh-is/qaa-p/12054368#M4504662</link>
      <description>&lt;P&gt;This is a general issue when you use routing with hash. As you are in the 3rd view and refresh the page, the hash will be there and the page gets refreshed and this is where you need to read the routing parameter(hash) in the routeMatched event and re read the data if not found(in case of browser refresh) which is the recommended way.&lt;/P&gt;&lt;P&gt;Try generating a master detail app using the ui5 template and you can see this feature in action which uses promises to achieve this.&lt;/P&gt;&lt;P&gt;restricting browser refresh is not an option. but you can still show a message to user if t he user refreshes but this will not prevent the refresh as it's just an information message and user can override it.&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/3221161/how-to-pop-up-an-alert-box-when-the-browsers-refresh-button-is-clicked"&gt;https://stackoverflow.com/questions/3221161/how-to-pop-up-an-alert-box-when-the-browsers-refresh-button-is-clicked&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 19:46:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/restrict-browser-refresh-or-navigate-user-home-screen-when-refresh-is/qaa-p/12054368#M4504662</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2019-12-04T19:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict browser refresh or navigate user home screen when refresh is pressed in browser</title>
      <link>https://community.sap.com/t5/technology-q-a/restrict-browser-refresh-or-navigate-user-home-screen-when-refresh-is/qaa-p/12054369#M4504663</link>
      <description>&lt;P&gt;Thanks Mahesh. I will check the Master Detail template.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik S&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 09:31:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/restrict-browser-refresh-or-navigate-user-home-screen-when-refresh-is/qaa-p/12054369#M4504663</guid>
      <dc:creator>former_member190063</dc:creator>
      <dc:date>2019-12-05T09:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict browser refresh or navigate user home screen when refresh is pressed in browser</title>
      <link>https://community.sap.com/t5/technology-q-a/restrict-browser-refresh-or-navigate-user-home-screen-when-refresh-is/qaa-p/12054370#M4504664</link>
      <description>&lt;P&gt;Hi &lt;A href="https://answers.sap.com/users/141526/raquelmartinbarry.html"&gt;Raquel Martin Barry&lt;/A&gt;, &lt;/P&gt;&lt;P&gt;I am using Routing navigation only. My previous view model or component model are empty when I try to refresh my third view. I am looking for a solution where user has to be navigated to home screen when he refresh the third screen. &lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 09:34:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/restrict-browser-refresh-or-navigate-user-home-screen-when-refresh-is/qaa-p/12054370#M4504664</guid>
      <dc:creator>former_member190063</dc:creator>
      <dc:date>2019-12-05T09:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict browser refresh or navigate user home screen when refresh is pressed in browser</title>
      <link>https://community.sap.com/t5/technology-q-a/restrict-browser-refresh-or-navigate-user-home-screen-when-refresh-is/qaa-p/12054371#M4504665</link>
      <description>&lt;P&gt;Hi &lt;A href="https://answers.sap.com/users/8651/karthik.s31.html"&gt;Karthik S&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If that is the case, then check in routematched event handler method if the data is there or not and you can trigger navigation again to the home page.&lt;/P&gt;&lt;P&gt;But it also looks like you dont' need routing as routing is needed in the scenarios when user clicks on refresh button and instead of navigating to the home page you will show the same page by requesting the new data.&lt;/P&gt;&lt;P&gt;So if you don't want that then better don't use navigation or don't use route patterns, just display page by using targets(without changing the hash).&lt;/P&gt;&lt;P&gt;&lt;A href="https://ui5.sap.com/#/topic/d9efab307ecc42b180b12cc8956e22d7"&gt;https://ui5.sap.com/#/topic/d9efab307ecc42b180b12cc8956e22d7&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 10:06:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/restrict-browser-refresh-or-navigate-user-home-screen-when-refresh-is/qaa-p/12054371#M4504665</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2019-12-05T10:06:58Z</dc:date>
    </item>
  </channel>
</rss>

