← Back to team overview

ubuntu-phone team mailing list archive

URL Dispatcher

 

When does the URL dispatcher get invoked?  I've noticed that from the Twitter app, for example, as the links go through the t.co domain that it opens them up in the browser, even if it's ultimately linking to the Twitter site (if linking to another tweet).  To play with how this is routed, I've created a web app that handles the t.co domain.  In there I added a file tco.dispatcher containing:-

[
        {
                "protocol": "http",
                "domain-suffix": "t.co"
        },
        {
                "protocol": "https",
                "domain-suffix": "t.co"
        }
]

but following links from the Twitter app still goes to the browser app, rather than to my one.  Do I need to do anything else in the TCO app to get this registered, or would pressing the link from the Twitter webapp just not invoke this URL hook, even if this app is registering it successfully?

Cheers - MH