Why is $urlRouterProvider.otherwise firing? links look valid


i got some problems with my routing.
I use the backend social login app from ionic market and just want to add a site.
Sounds like the simplest task, but it always firing $urlRouterProvider.otherwise, so my link is invalid.

This is the code snippet of my app.js for routing:

        .state('tab.objects', {
            url: '/objects',
            views: {
                'tab-objects': {
                    templateUrl: 'templates/tab-objects.html',
                    controller: 'DashboardCtrl as vm'
        .state('tab.objectdetails', {
            url: '/objects/:objectID',
            views: {
                'tab-objects': {
                    templateUrl: 'templates/tab-objectdetails.html',
                    controller: 'NothingCtrl'

And this is the link on site #/tab/objects

< ion-item class=“item-remove-animate item-avatar item-icon-right” type=“item-text-wrap” ng-repeat=“object in vm.data” href="#/tab/objects/{{object.id}}">

I really got no idea, why the link is invalid, because this was just a copy-paste from ionic starter app with chats. I tried several things, with and without ID in link, a separate controller or the same controller. Nothing with success.

He is a link to git for the whole project.

replace your href="…" with

ui-sref="'tab.objectdetails({objectID: 123})" perhaps you need to read more about the ui-router

1 Like

Please look at the ionic starter example:

They also used just href. Why does it work in this example?


The problem is in your href="#/tab/objects/{{object.id}}“
Try with href=”#/tabs/objects/{{object.id}}"

1 Like

First read, than ask … what a failure :smile:

I had tested everything unless just looking at the damn “s”…
Thank you!