login and register links should take the user back to the same page

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Wesley Tanaka’s picture

Status: Active » Needs review
Wesley Tanaka’s picture

Title: login and regsiter links don't redirect back to the topic » login and regsiter links on each comment don't redirect back to the topic
Dries’s picture

Status: Needs review » Needs work

Your code is vulnerable to XSS attacks.

Wesley Tanaka’s picture

Status: Needs work » Needs review
FileSize
1021 bytes
Wesley Tanaka’s picture

just confirmed that patch still applies against 4.7.0-test2

moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
3.5 KB

i made the destination smarter so that it links to the right page depending on whether comments are being displayed on other page or not.

i also fixed a logic bug when displaying this link on nodes. the link would not show up when comment form was placed on own page.

Dries’s picture

Status: Reviewed & tested by the community » Needs work

Incorrect use of url(). Fragments can be passed as the third argument so no need to fudge with urlencode(). Patch has tabs.

moshe weitzman’s picture

Status: Needs work » Reviewed & tested by the community
FileSize
3.58 KB

rerolled with proper use of url(). thanks.

moshe weitzman’s picture

FileSize
3.6 KB

now without tabs

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)