Fixed issue: Fix media controller path handling in production