diff --git a/api/products/views.py b/api/products/views.py index fd2ecaa..7ddb2dd 100644 --- a/api/products/views.py +++ b/api/products/views.py @@ -1249,7 +1249,9 @@ def mini_prog_entry_redirect(code, tid): # the mplink path setting may not work for some reason, so we use # redirect param of the index page as a fallback query += '&redirect=' + path - url = cache.get_or_set(key, lambda: mplink(query, path, env_version), 300) + # passing path other than /pages/index/index to mplink may get an error, use + # the redirect param of the index page as a fallback for now + url = cache.get_or_set(key, lambda: mplink(query, "/pages/index/index", env_version), 300) return redirect(url) class MiniProgEntryView(BaseView):