If the piwik installation is on a virtual host other than default port (not 80 with http or not 443 with https) the dashboardUrl within the embedded iframe definition or the direct link resource for the choosen widget is without any port-defintion.
Attachment:
not-default-port.patch
(In [5004]) Fixes #2549 Thanks skt27 for the report & patch