I've installed Drupal 7 into a subdirectory of web root, and tested this module. Having created an STV election and made two nominations, I switched the election to open voting, and submitted a vote through the default admin user. On submission of the vote, I see that the vote has been submitted, but page redirection also leads to a 404.

From the election_vote component I get: Thank you for voting (position: Leader).

However, redirection leads to: {snip}/tard/?q=/tard/%3Fq%3Delection/1

Which leads to page not found: The requested page "/tard/?q=/tard/%3Fq%3Delection/1" could not be found.

I've marked the issue as Major because if I were going to install to subdirectory in production, this would block me from using the module.

Comments

Honestly Illustrated’s picture

Additionally, which may deserve a separate issue ticket, the vote confirmation text

Thank you for voting (position: Leader).

contains an error in its hyperlink on "Leader".

The href for the hyperlink leads to: {snip}/tard/url%5D

That's a "]" appended to the end of the URI.

pjcdawkins’s picture

Status: Active » Needs review
StatusFileSize
new2.04 KB

Hi, could you try this patch (for the original issue)?

pjcdawkins’s picture

Status: Needs review » Fixed

I've committed the above patch.

pjcdawkins’s picture

I've also committed a fix to #1, documented in #1946948: Provide custom Rules actions for showing messages

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

Removed local-only domain and protocol so we don't publish an unroutable hyperlink.