Skip to content

Conversation

chrismshea
Copy link

Replace hardcoded admin URL path with Magento's BackendUrlInterface to properly support merchants with custom admin paths configured.

  • Remove ADMIN_ORDER_AMOUNT_URL constant
  • Inject \Magento\Backend\Model\UrlInterface via constructor
  • Use $backendUrl->getUrl('subscribepro/order/amount') to generate dynamically
  • Ensures compatibility with custom admin path configurations

Chris Shea added 2 commits October 15, 2025 15:25
Replace hardcoded admin URL path with Magento's BackendUrlInterface to properly support merchants with custom admin paths configured.
   - Remove ADMIN_ORDER_AMOUNT_URL constant
   - Inject \Magento\Backend\Model\UrlInterface via constructor
   - Use $backendUrl->getUrl('subscribepro/order/amount') to generate dynamically
   - Ensures compatibility with custom admin path configurations
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.

1 participant