From e5f7e937ef59dc7ed7a3d4bc0c71c433c00ac92c Mon Sep 17 00:00:00 2001 From: "Laryn - CEDC.org" Date: Thu, 25 Aug 2016 11:57:34 -0500 Subject: [PATCH] Issue #11: Some fixes for generated URLs that were giving me errors. --- forum.admin.inc | 2 +- forum.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/forum.admin.inc b/forum.admin.inc index 2865630..98a858e 100644 --- a/forum.admin.inc +++ b/forum.admin.inc @@ -195,7 +195,7 @@ function forum_overview($form, &$form_state) { $term = $form[$key]['#term']; $form[$key]['view']['#href'] = 'forum/' . $term['tid']; $form[$key]['operations']['#links']['edit']['title'] = t('edit forum'); - $form[$key]['operations']['#links']['edit']['href'] = 'admin/structure/forum/edit/forum/' . $term['tid']; + $form[$key]['operations']['#links']['edit']['href'] = 'admin/structure/forum/' . $term['tid']; } } diff --git a/forum.module b/forum.module index c79a3c7..27d8bf4 100644 --- a/forum.module +++ b/forum.module @@ -207,7 +207,7 @@ function forum_node_view($node, $view_mode) { if ($parents = taxonomy_term_load_parents_all($node->forum_tid)) { $parents = array_reverse($parents); foreach ($parents as $parent) { - $breadcrumb[] = l($parent->name, 'forum/' . $parent->name); + $breadcrumb[] = l($parent->name, 'forum/'.str_replace(' ', '-',(strtolower($parent->name)))); } } backdrop_set_breadcrumb($breadcrumb);