הפנה קטגוריה לכתובת URL חיצונית

You might find that less of an issue if you modify the route instead of relying on api.onPageChange() which seems to fire after the page is rendered.

See Redirect an existing route in a theme component

לייק 1