Once you set a specific node or hook_menu path to be the homepage under Site Information, hitting that /{path} will redirect you to your base_path().

Not accounting for this in boxes.module results in strange behavior when adding or editing boxes on the homepage, namely a '301 Moved Permanently' message which leads to a second AJAX call that hangs.

example.com/gta_home?boxes_delta=box-680c13da --> 301 Moved Permanently
example.com/?boxes_delta=box-680c13da --> hangs

This patch fixes this issue.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tirdadc’s picture

tirdadc’s picture

Status: Active » Needs review
arpieb’s picture

The above patch appears to work just fine in an installation where DOCROOT for the domain is the same as for the Drupal installation, but if Drupal is nested under a subdirectory the base_path() call generates an AJAX callback URL that can cause a 404 error depending on the site config.

The attached patch swaps the base_path() call out with the internal path <front>, and in the JS code replaces the call with an empty string. (Also, couldn't find anywhere in the code that getQ was being used on the browser end...?)

mrfelton’s picture

Same problem here on D6. I tried directly backporting this patch, but it didn't fix the issue.

mrfelton’s picture

Issue summary: View changes

blah

  • hefox committed 1a7544f on 7.x-1.x
    Issue #1561196 by arpieb, tirdadc: fix for ['q'] path results in issues...
hefox’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Issue summary: View changes
Status: Needs review » Patch (to be ported)