The current node being viewed is not used in the argument when adding the View as a Block
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3547857. --> Reported by: [calmforce](https://www.drupal.org/user/915444) Related to !6 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>The call to AIRelatedContentNodeFilter::getNodeForRelatedContent() returns NULL in its default configuration when the View is rendered via a Block instead of <code>drupal_view()</code> because the Argument does not retrieve the Content ID as its fallback. This is tracked to the function AIRelatedContentNodeArgument::getNode() where the value is then null in this scenario.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>1. Assign the block AI Related Content to any region on the node page. The Views Block should have all the default configurations recommended and provided by the module.</p> <p>2. Configure it to show up on pages /node/*</p> <p>3. Load a node page and observe that the Related Content doesn't show up.</p> <p>Tested with AI version 1.1.3 in Drupal CMS core 11.2.4</p>
issue