Skip to content

Conversation

@jjroelofs
Copy link
Contributor

Add experimentUrl to drupalSettings for DXPR Builder integration

Linked issues

Summary

  • Add experimentUrl to the drupalSettings.aiSorting.views output
  • URL is generated using Drupal's routing system via Url::fromRoute()
  • Consuming modules can now link to experiment reports without hardcoding URL structure

Test plan

  • Enable ai_sorting on a View
  • Check drupalSettings.aiSorting.views in browser console
  • Verify experimentUrl is present and points to correct report page

Checklist

  • I have read the CONTRIBUTING.md document.
  • My commit messages follow the contributing standards and style of this project.
  • My code follows the coding standards and style of this project.
  • My code contains no changes that are outside the scope of the issue.
  • Bug fix (non-breaking change which fixes an issue).
  • New feature (non-breaking change which adds functionality).
  • Breaking change (fix or feature that would cause existing functionality to change).

Add experimentUrl to the drupalSettings.aiSorting.views output so that
consuming modules (like DXPR Builder) can link to experiment reports
without hardcoding the URL structure.

The URL is generated using Drupal's routing system, ensuring it stays
in sync if the route path changes in the rl module.

Fixes #22
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.

Expose experiment report URL in drupalSettings for DXPR Builder integration

2 participants