We used to use the original url because that was what was entered into the
history database. Now, with a change in webkit, the correct url will be passed
to updateVisitedHistory if the server sent a redirect. This allows for the
correct url and title to be displayed in the title bar as well as the correct
url and title to be stored in the history.
@Override
public void onReceivedTitle(WebView view, String title) {
- String url = view.getOriginalUrl();
+ String url = view.getUrl();
// here, if url is null, we want to reset the title
setUrlTitle(url, title);