Skip to content

Issue #11: Some fixes for generated URLs that were giving me errors. - #12

Open
laryn wants to merge 1 commit into
backdrop-contrib:1.x-2.xfrom
laryn:1.x-2.x
Open

Issue #11: Some fixes for generated URLs that were giving me errors.#12
laryn wants to merge 1 commit into
backdrop-contrib:1.x-2.xfrom
laryn:1.x-2.x

Conversation

@laryn

@laryn laryn commented Aug 25, 2016

Copy link
Copy Markdown
Member

I think there are still some kinks in terms of the URLs that are being generated -- some examples here. (There may be more).

Comment thread forum.admin.inc
$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'];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not clear on why you want to change it from the edit link to something else. This link shows up on the admin side for editing forum categories.

Comment thread forum.module
$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))));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of the box this module seems to use the term id: $breadcrumb[] = l($parent->name, 'forum/' . $parent->tid); and this PR seems to be conflicting with that. So might need to have a condition if the path module is enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants