Skip to content
Permalink
Browse files

route bugfix

  • Loading branch information...
felipevex committed Jul 11, 2019
1 parent c5a1543 commit b433d1f10250be3b94a7650352253fad112d089b
Showing with 5 additions and 1 deletion.
  1. +5 −1 priori/scene/PriSceneManager.hx
@@ -129,9 +129,13 @@ class PriSceneManager {
}

public function navigate(path:String):Void {
if (StringTools.startsWith(path,"/")) path = "#" + path;

if (StringTools.startsWith(path, "#")) path = path.substr(1);

if (StringTools.startsWith(path, "/")) path = "#" + path;
else path = "#/" + path;


if (js.Browser.location.hash == path) {
this.navigateToCurrent();
} else {

0 comments on commit b433d1f

Please sign in to comment.
You can’t perform that action at this time.