Skip to content

Fix hardcoded paths in email export controller to support custom url_prefix - #179

Closed
timujinne wants to merge 1 commit into
BeamLabEU:devfrom
timujinne:claude/fix-phoenix-kit-path-generation-011CV4cRDaj1LQptC4ho3SLG
Closed

Fix hardcoded paths in email export controller to support custom url_prefix#179
timujinne wants to merge 1 commit into
BeamLabEU:devfrom
timujinne:claude/fix-phoenix-kit-path-generation-011CV4cRDaj1LQptC4ho3SLG

Conversation

@timujinne

Copy link
Copy Markdown
Contributor

Updated email_export_controller.ex to use Routes.path() for all redirect URLs instead of hardcoded /phoenix_kit/ paths. This ensures that the email export functionality works correctly when a custom url_prefix is configured.

Changes:

  • Add PhoenixKit.Utils.Routes alias
  • Replace all hardcoded '/phoenix_kit/admin/dashboard' redirects with Routes.path('/admin/dashboard')
  • Replace all hardcoded '/phoenix_kit/admin/emails' redirects with Routes.path('/admin/emails')

This fix ensures consistent behavior across all PhoenixKit URLs regardless of the configured url_prefix setting.

…prefix

Updated email_export_controller.ex to use Routes.path() for all redirect URLs
instead of hardcoded /phoenix_kit/ paths. This ensures that the email export
functionality works correctly when a custom url_prefix is configured.

Changes:
- Add PhoenixKit.Utils.Routes alias
- Replace all hardcoded '/phoenix_kit/admin/dashboard' redirects with Routes.path('/admin/dashboard')
- Replace all hardcoded '/phoenix_kit/admin/emails' redirects with Routes.path('/admin/emails')

This fix ensures consistent behavior across all PhoenixKit URLs regardless
of the configured url_prefix setting.
@timujinne timujinne closed this Nov 15, 2025
@timujinne
timujinne deleted the claude/fix-phoenix-kit-path-generation-011CV4cRDaj1LQptC4ho3SLG branch December 1, 2025 11:17
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.

2 participants