Refactored for assets redirection in product-mode.