If I use the "Purge this page" button on the front page, the program adds "/home" to all URLs in the purge request and the home page does not get purged.

Steps:
1. Enable Acquia purge.
2. Enable Manual purge form (current page) block
3. Go to /
4. Click purge button
5. Check drupal-watchdog.log

Actual result per domain per load balancer:
Purged 'http://[domain]/home' from load balancer [IP address]

Expected result per domain per load balancer:
Purged 'http://[domain]/' from load balancer [IP address]

Workaround (for Administrator role only): Use /admin/config/system/expire/manualpurge to purge <front>

CommentFileSizeAuthor
#4 using_purge_button_to-2392563-4.patch828 bytesgrasmash

Comments

charles belov’s picture

Issue summary: View changes
charles belov’s picture

lahoosascoots assisted me on this:

It looks to me like the block takes the _GET['q'] of the page and purges it. On the front page it is 'home' and doesn't connect [the] dots that it needs to clear the homepage address too.

charles belov’s picture

Issue summary: View changes
grasmash’s picture

Status: Active » Needs review
StatusFileSize
new828 bytes
nielsvm’s picture

Status: Needs review » Closed (fixed)

The implementation already uses request_uri() since #2387377, which means _acquia_purge_input_path_variations() then does the rest. I tested this and still fixed another small detail, so it should all work in 7.x-1.2.

[7.x-1.x 382eb8c] Issue #2392563 by grasmash, Charles Belov: Using purge button to purge front page doesn't purge front page
 Author: madmatter23 <madmatter23@455714.no-reply.drupal.org>
 1 file changed, 2 insertions(+), 1 deletion(-)

Closing, feel free to reopen when the next version doesn't fix it.