Skip to content

Add missing prettyblock_llm_links template and harden rendering to fix 500 error#991

Merged
CySSoO merged 1 commit intoprettyblockfrom
cyssoo/corriger-les-erreurs-500-du-resume-ia
Mar 6, 2026
Merged

Add missing prettyblock_llm_links template and harden rendering to fix 500 error#991
CySSoO merged 1 commit intoprettyblockfrom
cyssoo/corriger-les-erreurs-500-du-resume-ia

Conversation

@CySSoO
Copy link
Contributor

@CySSoO CySSoO commented Mar 6, 2026

Motivation

  • The everblock_llm_links prettyblock referenced a missing template which caused runtime 500 errors when the block was rendered.

Description

  • Added views/templates/hook/prettyblocks/prettyblock_llm_links.tpl to provide the expected template and avoid the missing-file error.
  • The template renders the optional heading and iterates state entries with defensive checks so links are only output when both label and base_url are present.
  • The prompt is built by replacing {{title}} and {{url}} in the prompt_template and the prompt portion is URL-encoded before concatenating with base_url to form the final link.
  • Links opened in a new tab include rel="noopener noreferrer" and icon rendering is guarded to avoid template failures.

Testing

  • Verified the new file was added and committed with git show --name-status --oneline HEAD -1 which lists the added template.
  • Confirmed repository status with git status --short returned a clean working tree after the commit.
  • Performed a Playwright smoke attempt to capture the UI which failed with ERR_EMPTY_RESPONSE because no local web server was reachable on http://localhost:80, :8080, or :3000.

Codex Task

@CySSoO CySSoO merged commit 38268c1 into prettyblock Mar 6, 2026
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant