Skip to content

Comments

fix: use dynamic admin URL generation instead of hardcoded path#296

Open
chrismshea wants to merge 1 commit intosubscribepro:mainfrom
chrismshea:295-custom-admin-url-issue
Open

fix: use dynamic admin URL generation instead of hardcoded path#296
chrismshea wants to merge 1 commit intosubscribepro:mainfrom
chrismshea:295-custom-admin-url-issue

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

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
@chrismshea chrismshea force-pushed the 295-custom-admin-url-issue branch from 9938926 to 435c19f Compare February 10, 2026 10:29
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