interfasys / piwik-yourls

A Piwik plugin for YOURLS
28 stars 10 forks source link

wrong URL tracked #5

Open hannesbochmann opened 9 years ago

hannesbochmann commented 9 years ago

If YOULRS is not installed in the webroot but in a subfolder, the tracked URL is wrong. Let's say YOURLS is installed in domain.tld/g and a short link looks like domain.tld/g/test. Than the URL domain.tld/test is passed to piwik instead of domain.tld/g/test. Wouldn't it be better if the constant YOURLS_SITE is used instead of $_SERVER['HTTP_HOST']?

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

oparoz commented 9 years ago

Thanks for the report. It's true that I didn't take this case into consideration. I'll work on a fix.