I have noticed that the defined mission statement will not appear on phptemplate.engine based templates under a certain condition.

Steps to recreate:

Create a new page. Its path is 'node/2'. Give it a custom path alias for nicer url, such as 'welcome'.

If I set the default front page to a custom path/alias, such as 'welcome' - i will now not see the missions statement.

This is because the default front page is providing $GET['q'] = 'welcome', but the variable_get('site_frontpage', 'node') is returning the raw url 'node/2'.

The fix in phptemplate.engine is to edit line ~108 to:

if (drupal_get_path_alias($_GET['q']) == variable_get('site_frontpage', 'node')) {

The drupal_get_path_alias($_GET['q']) ensures the raw url gets converted to the nice url alias before comparing it and deciding if the mission statement should be displayed.

Hope this fix can be included in the next public update.

Comments

d------’s picture

Version: 4.5.x-1.x-dev » master
Issue summary: View changes
Status: Active » Closed (cannot reproduce)
budda’s picture

Nothing like the feeling of closing a 15-year-old bug report! 🤣