package com.usepropeller.routable;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;

public class RouterActivity extends Activity {
	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);

	    Intent intent = getIntent();
	    String url;

	    Bundle extras = intent.getExtras();
	    if (extras.containsKey("url")) {
	    	url = extras.getString("url");
	    }
	    else {
		    Uri data = intent.getData();
		    url = data.getPath();
		    if (url.startsWith("/")) {
		    	url = url.substring(1);
		    }
		    if (Router.sharedRouter().getRootUrl() != null) {
			    Router.sharedRouter().open(Router.sharedRouter().getRootUrl());
		    }
	    }

	    Router.sharedRouter().open(url);

	    setResult(RESULT_OK, null);
	    finish();
	}
}

@@ -523,101 +523,107 @@
     
-url = data.getPath();%0A%09%09    if (url.startsWith(%22/%22)) %7B
+String protocol = data.getScheme() + %22://%22;
 %0A%09%09    
-%09
 url = 
-url.substring(1);%0A%09%09    %7D
+data.toString().replaceFirst(protocol, %22%22);
 %0A%09%09 

Change protocol format to use the FULL url instead of just the path