Active
Project:
Boost
Version:
6.x-1.18
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Nov 2011 at 12:42 UTC
Updated:
24 Nov 2011 at 11:54 UTC
Hi, I noticed that when a node is created that belongs to the same menu as the front page, and boost is set to clear the whole menu, the front page isn't cleared. I solved the problem in this way (I haven't learned how to make proper patches yet):
Go to line 2878 in boost.module, function boost_file_path. Paste this as the first piece of code inside the function:
if(!isset($_SESSION['site_frontpage'])) $_SESSION['site_frontpage'] = variable_get('site_frontpage', 'node');
if($path==$_SESSION['site_frontpage']) {
$path = '';
}
This solves the problem for me although there are probably better ways than to use a $_SESSION variable.
Comments
Comment #1
marios88 commentedUse rules module, and on insert new node leave "" ( empty string ) in "Page URL: "