Problem/Motivation

If you have installed Drupal in a subdirectory (http://example.tld/drupal) and HTTP_REFERER is empty while clearing a cache via admin toolbar you will be redirected to http://example.tld instead of http://example.tld/drupal as you would have expected.

Steps to reproduce

see above

Proposed resolution

do not return hardcoded "/" for redirection, but rather use base_path()

Remaining tasks

provide a patch

User interface changes

none

API changes

none

Data model changes

none

Comments

stefan.korn created an issue. See original summary.

stefan.korn’s picture

Assigned: stefan.korn » Unassigned
Status: Active » Needs review
StatusFileSize
new486 bytes
stefan.korn’s picture

Issue summary: View changes
paulocs’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new8.33 KB

Looks good!
Patch can be applied to the 3.x branch as well.

paulocs’s picture

Triggering the tests to 3.x branch.

  • adriancid committed 2d43697 on 3.x authored by stefan.korn
    Issue #3210679 by stefan.korn, paulocs, adriancid: Cache clear - Reload...
adriancid’s picture

Status: Reviewed & tested by the community » Fixed

Thanks

Status: Fixed » Closed (fixed)

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