This repository was archived by the owner on Aug 9, 2018. It is now read-only.
Commit 45c1d85
committed
Mimic the behavior of UrlResolve
Angular UrlResovle that is using the DOM to parse the URL has a certain behavior to handle the value null.
It results in the URI '/null'
Mimic that behavior here instead of dying with:
TypeError: Parameter 'url' must be a string, not object
at Url.parse (url.js:118:11)
at urlParse (url.js:112:5)
at Url.resolve (url.js:406:29)
at Object.urlResolve [as resolve] (url.js:402:40)
at sanitizeUri (/Users/aimbert/devel/phoenix/node_modules/angularjs-server/lib/ngoverrides.js:589:45)1 parent 2e55127 commit 45c1d85
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
589 | | - | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
590 | 599 | | |
591 | 600 | | |
592 | 601 | | |
| |||
0 commit comments