<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Quick Tips Archives - Ionic and Django Tutorial</title>
	<atom:link href="https://www.ionicanddjangotutorial.com/category/ionic-quick-tips/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.ionicanddjangotutorial.com/category/ionic-quick-tips/</link>
	<description>Build a mobile application with Ionic  and Django</description>
	<lastBuildDate>Sat, 08 Aug 2020 06:41:36 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.0.9</generator>
	<item>
		<title>How to force Ionic to refresh a page when navigating on same url ?</title>
		<link>https://www.ionicanddjangotutorial.com/ionic-navigating-same-url/</link>
		
		<dc:creator><![CDATA[Christophe Surbier]]></dc:creator>
		<pubDate>Wed, 05 Aug 2020 17:10:55 +0000</pubDate>
				<category><![CDATA[Quick Tips]]></category>
		<guid isPermaLink="false">https://www.ionicanddjangotutorial.com/?p=265</guid>

					<description><![CDATA[<p>In this quick and short tutorial, i will show you how to force the page refreshing when navigating on same&#8230; <a href="https://www.ionicanddjangotutorial.com/ionic-navigating-same-url/" class="more-link">Continue Reading <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="https://www.ionicanddjangotutorial.com/ionic-navigating-same-url/">How to force Ionic to refresh a page when navigating on same url ?</a> appeared first on <a rel="nofollow" href="https://www.ionicanddjangotutorial.com">Ionic and Django Tutorial</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this quick and short tutorial, i will show you how to force the page refreshing when navigating on same url.</p>



<span id="more-265"></span>



<p>Last day i was struggle with Ionic and a big problem with the navigation. Let me explains. You can have a page A with the associated url : /mypageA.</p>



<p>Inside this page A, you want to be able to go to the same page again using the <strong>router.navigateByUrl(&#8220;/mypageA&#8221;)</strong> instruction. </p>



<p>You could expect that the page refreshs itself using the standard construct or ionViewWillEnter / ionViewDidEnter methods. But it is not. Nothing will happen and the page won&#8217;t change.</p>



<p>This is due to the fact that the url needs to change between two pages. </p>



<p>You can go from Page A to Page B and then from Page B to Page A, <strong>but you can&#8217;t go from Page A to Page A</strong>.</p>






<p>To do that you need to force Ionic to refresh the page. Here is how to do:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="typescript" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">this.router.navigateByUrl('/mypageA', {skipLocationChange: true}).then(() => {
this.router.navigate(["/mypageA"]);
});</pre>



<p>Hope it will help you to avoid searching a solution for this problem for hours.</p>
<p>The post <a rel="nofollow" href="https://www.ionicanddjangotutorial.com/ionic-navigating-same-url/">How to force Ionic to refresh a page when navigating on same url ?</a> appeared first on <a rel="nofollow" href="https://www.ionicanddjangotutorial.com">Ionic and Django Tutorial</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
