Ionic de-linker breaks during upgrade

I use Ionic Deeplinker for a web application (browser) in Ionic 3

Everything works fine when passing parameters to a URL:

http: // localhost: 8100 / # / redeem / 593f2ac1e839b689d883448d

Hover over when I update my application, I get:

Uncaught (in promise): invalid link: redeem/593f2ac1e839b689d883448d

I am using the IonicPage decorator as follows:

@IonicPage({
  name: 'redeem',
  segment: 'redeem/:id',
  defaultHistory: ['reward-goals']
})

Why does this happen when I refresh the page, I get this error?

PLEASE NOTE: it works fine without adding a parameter to the route:

http: // localhost: 8100 / # / redeem

So, something about the route parameter is causing the problem.

UPDATE: when deploying my application everything works fine, but I still see an error in the console. enter image description here

+4
1

. : enter image description here

... enter image description here

. / . .

**** UPDATE ****** ...

UrlSerializer.prototype.getLinkFromName = function (nameOrComponent) {
        return this.links.find(function (link) {
            return (link.component === nameOrComponent) 
                       || (link.name === nameOrComponent) 
                       || (nameOrComponent.indexOf(link.name )>-1); //added this line
        });
    };

. . , ..

+1

Source: https://habr.com/ru/post/1684563/


All Articles