Skip to content

Conversation

@CySSoO
Copy link
Contributor

@CySSoO CySSoO commented Jan 30, 2026

Motivation

  • Prestashop 9 deprecates/changes Tools::link_rewrite in favor of Tools::str2url, so the module must prefer str2url while remaining compatible with Prestashop 8.
  • Ensure slug/filename normalization and route rules produce correct, stable rewrites across PS versions.

Description

  • Replace direct Tools::link_rewrite calls with a conditional that uses Tools::str2url when available and falls back to Tools::link_rewrite otherwise across the module.
  • Update module configuration handling for EVERBLOCK_PAGES_BASE_URL and EVERBLOCK_FAQ_BASE_URL and route generation in hookModuleRoutes in everblock.php.
  • Normalize guided selector keys/answers and route rewrites in everblock.php to use the new conditional logic.
  • Update admin, model and front-end generation of slugs and filenames in controllers/admin/AdminEverBlockPageController.php, models/EverblockPage.php, controllers/front/slotmachine.php, and src/Service/EverblockTools.php to prefer Tools::str2url with fallback.

Testing

  • No automated tests were executed for this change.

Codex Task

@CySSoO CySSoO merged commit e9eeaf4 into master Jan 30, 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.

2 participants