<table><tr><td style="">pgomes created this revision.<br />pgomes created this object with edit policy "Administrators".<br />pgomes added a project: Amarok.<br />Herald added subscribers: amarok-devel, Amarok.<br />Herald removed a project: Amarok.<br />pgomes requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D27371">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Wikipedia article would enter in the following loop when loading any article:</p>

<ol class="remarkup-list">
<li class="remarkup-list-item">WikipediaEngine loads article from Wikipedia and format it</li>
<li class="remarkup-list-item">communicate page is ready to QML with PageChanged signal</li>
<li class="remarkup-list-item">QML script loads html via content.loadHtml; this triggers a naviagateRequest signal</li>
<li class="remarkup-list-item">same QML script captures the signal, and evokes WikipediaEngine.setUrl (passing a data-scheme URL), restarting the loop</li>
</ol>

<p>The patch does the following</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">fix the loop by only handling naviagateRequest signals that were caused by clicking in a link (LinkClickedNavigation). The one that was causing the issue (signaled by loadHtml) is TypedNavigation</li>
<li class="remarkup-list-item">click to reload button invokes reloadWikipedia(); before it was only reloading the data-schemed URL that was being displayed</li>
<li class="remarkup-list-item">remove the deprecated "srredirects" parameter from the GET query</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R181 Amarok</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D27371">https://phabricator.kde.org/D27371</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/context/applets/wikipedia/package/contents/ui/main.qml<br />
src/context/applets/wikipedia/plugin/WikipediaEngine.cpp<br />
src/context/applets/wikipedia/plugin/WikipediaEngine.h</div></div></div><br /><div><strong>To: </strong>pgomes<br /><strong>Cc: </strong>Amarok, amarok-devel<br /></div>