Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a more helpful info to the default matomo.php output #15828

Merged
merged 2 commits into from May 10, 2020

Conversation

Findus23
Copy link
Member

As two people contacted me in a few days because they seem to have mixed up matomo.php and index.php, I propose to add a more direct help to the default output.

@Findus23 Findus23 added c: Usability For issues that let users achieve a defined goal more effectively or efficiently. Needs Review PRs that need a code review labels Apr 19, 2020
@Findus23 Findus23 added this to the 4.0.0 milestone Apr 19, 2020
@@ -79,7 +79,8 @@ public function outputResponse(Tracker $tracker)
Common::sendResponseCode(400);
}
Common::printDebug("Empty request => Matomo page");
echo "This resource is part of Matomo. Keep full control of your data with the leading free and open source <a href='https://matomo.org' target='_blank' rel='noopener noreferrer nofollow'>web analytics & conversion optimisation platform</a>.";
echo "This resource is part of Matomo. Keep full control of your data with the leading free and open source <a href='https://matomo.org' target='_blank' rel='noopener noreferrer nofollow'>web analytics & conversion optimisation platform</a>.<br>\n";
echo "This file is the endpoint for the Matomo tracking API. If you want to access the Matomo UI or use the Reporting API, please use <a href='index.php'>index.php</a> instead.";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Findus23 I suppose noreferrer nofollow might not be needed in this case since it goes to the same install and there is a noindex?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ping @Findus23

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, missed the first mail. (need to write a mail filter that marks mentions separately)

I don't think they are needed as they just link to the Matomo main page which would most likely redirect to the login (for random visitors) which is not indexed.

@tsteur tsteur merged commit 8b21dbf into 4.x-dev May 10, 2020
@tsteur tsteur deleted the more-helpful-matomo-php-message branch May 10, 2020 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Usability For issues that let users achieve a defined goal more effectively or efficiently. Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants