Skip to content

Commit

Permalink
Merge pull request #154 from iameugenejo/master
Browse files Browse the repository at this point in the history
Remove unnecessary .html filter
  • Loading branch information
EddyVerbruggen committed Oct 2, 2016
2 parents 5162e82 + efe2070 commit b3e01b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/android/NativePageTransitions.java
Expand Up @@ -196,7 +196,7 @@ public void run() {
}

if (href != null && !"null".equals(href)) {
if (!href.startsWith("#") && href.contains(".html")) {
if (!href.startsWith("#")) {
webView.loadUrlIntoView(webView.getUrl().substring(0, webView.getUrl().lastIndexOf('/')+1) + href, false);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/ios/NativePageTransitions.m
Expand Up @@ -723,7 +723,7 @@ - (BOOL) loadHrefIfPassed:(NSString*) href {
uiwebview = ((UIWebView*)self.webView);
}
if (href != nil && ![href isEqual:[NSNull null]]) {
if (![href hasPrefix:@"#"] && [href rangeOfString:@".html"].location != NSNotFound) {
if (![href hasPrefix:@"#"]) {
// strip any params when looking for the file on the filesystem
NSString *bareFileName = href;
NSString *urlParams = nil;
Expand Down

0 comments on commit b3e01b6

Please sign in to comment.