Problem:
The dashboard controller in ai_empathy had a hardcoded URL path (/admin/config/ai/empathy/evaluate) for the "Run an evaluation" link. This breaks if the site uses a different base path, language prefixes, or if the route path changes.

Proposed resolution:
Replace the hardcoded path with Url::fromRoute('ai_empathy.run_evaluation') which generates the correct URL dynamically from the route system.

CommentFileSizeAuthor
AI-Empathy-Evaluation-Drupal11.png6.94 KBrevathi.b

Issue fork ai_empathy-3582247

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

revathi.b created an issue. See original summary.

revathi.b’s picture

Status: Active » Needs review

MR !1 adding absolute link, please check.

joshua1234511 made their first commit to this issue’s fork.

joshua1234511’s picture

Issue summary: View changes
joshua1234511’s picture

Assigned: revathi.b » Unassigned
joshua1234511’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

joshua1234511’s picture

Status: Fixed » Closed (fixed)

Merged, will be out in the next release.