Replace url() with path() for dashboard url

It's not better to use the relative dashboard url generated with the
path() twig function instead of the absolute url using the url()
function?

I noticed in a project of mine (the hosting server have some special
settings regarding the public hostname) that the dashboard url is wrong
generated using url(), with path() it is perfect.
[CRUDController]Allowed throw exception on debug mode.
Merge pull request #1982 from aitboudad/patch-2

[CRUDController]Allowed throw exception on debug mode
Merge pull request #2519 from samuel4x4/master

Replace url() with path() for dashboard url
Merge remote-tracking branch 'sonata-project/master'