diff --git a/src/winphone/NativePageTransitions.cs b/src/winphone/NativePageTransitions.cs index d65e51e..d5d2e27 100644 --- a/src/winphone/NativePageTransitions.cs +++ b/src/winphone/NativePageTransitions.cs @@ -148,7 +148,7 @@ public void slide(string options) } else { - to = "www/" + to; + to = path.Substring(0, path.LastIndexOf('/')+1) + to; } browser.Navigate(new Uri(to, UriKind.RelativeOrAbsolute)); } @@ -238,12 +238,10 @@ public void flip(string options) path = path.Substring(0, path.IndexOf("#")); } to = path + to; - //Debug.WriteLine("browser will navigate to (a): " + to); } else { - to = "www/" + to; - //Debug.WriteLine("browser will navigate to (b): " + to); + to = path.Substring(0, path.LastIndexOf('/')+1) + to; } browser.Navigate(new Uri(to, UriKind.RelativeOrAbsolute)); }