Problem/Motivation

I want recipients of the helpfulness email to be able to click through to the page (node) that the report was generated from.

Proposed resolution

I have a patch which I will be submitting.

Remaining tasks

Submit/review patch.

Comments

leonardpg created an issue. See original summary.

leonardpg’s picture

StatusFileSize
new1.11 KB

Patch attached. Small changes to src/Form/HelpfulnessBlockForm.php to add the page url to the params array, and helpfulness.module to append the 'nodeurl' to the body of the email in helpfulness_mail.

leonardpg’s picture

Status: Active » Needs review
StatusFileSize
new1.11 KB

Patch attached. Small changes to src/Form/HelpfulnessBlockForm.php to add the page url to the params array, and helpfulness.module to append the 'nodeurl' to the body of the email in helpfulness_mail. (Resubmitting. I forgot to change the status to 'needs review'.)

gueguerreiro’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -email

Hello @leonardpg, thank you for opening the issue and providing a patch! The change makes total sense to me. I'll commit it and create new releases for 8.x and 2.x versions of the module.

A little nitpick, but I'm changing the variable name from "nodeurl" to "page_url", as that's more technically correct, since the helpfulness block doesn't necessarily have to be placed on a node page (It can be placed on a taxonomy page, or a view page, for example). I can just do that directly though, I won't ask you to provide a new patch for such a small change.

gueguerreiro’s picture

Assigned: leonardpg » Unassigned
Status: Reviewed & tested by the community » Fixed

Committed your changes to both D8 branches and created new releases. Thanks for making this module better for everyone!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.