Currently, when 'Disable question links to nodes' is enabled, FAQ questions in the recent FAQs and random FAQs blocks no longer link anywhere (they would link to the questions themselves otherwise). Instead, the user is expected to click All FAQs and find the questions there. This issue is a feature request that they link to the questions directly on the faq page when linking to the 'nodes' is disabled.

CommentFileSizeAuthor
#1 faq-link_to_questions-829368.patch3.07 KBdarktygur-1

Comments

darktygur-1’s picture

Status: Active » Needs review
StatusFileSize
new3.07 KB

Patch is attached.

elijah lynn’s picture

Issue tags: +UX, +user experience

I would love to see this feature! Currently, we have to rely on them seeing the breadcrumb to get back to the FAQs, from a usability standpoint this way would be desirable.

stella’s picture

Status: Needs review » Needs work

This solution doesn't work in categorization is enabled. It doesn't set any anchor at all in such cases, and the anchor label would need to be different in any case (t12n34 for tid 12, node 34). In addition, with categories it's quite possible that the question and answer won't be displayed on the main faq page. I've committed what has been done so far as it doesn't break anything, but this functionality is not complete and requires further work.

stella’s picture

What has been done so far has been released in 6.x-1.12. Still waiting on new patch for categorization.

shiff2kl’s picture

I have found the fix for links to work when using categorization.

Line 949 of faq.module is as follows:
$path = pathauto_create_alias('faq', 'insert', $placeholders, arg(0) .'/'. $term->tid, $term->tid);

If I change this to the following, it works:
pathauto_create_alias('faq', 'insert', $placeholders, arg(0) .'/'. $term->tid, $term->tid);

stella’s picture

I don't see how that fixes it.

stella’s picture

Status: Needs work » Closed (won't fix)

Closing as no updates in over 6 months.

  • stella committed 56cd239 on 8.x-1.x
    #829368 by darktygur - point 'disable node link' questions in blocks to...
  • stella committed 6dad9bf on 8.x-1.x
    Issue #829368 by stella : added in more anchors