Skip to main content

1.20.0 - Back to Page Block, Login Form Referrer Redirect & Block Form Style

· 2 min read
Konstantin Brazhnik
Senior Full Stack Engineer @ Yoko Co

Version 1.20.0 introduces the new Back to Page Gutenberg block for history-aware navigation, adds a Redirect to Referrer option to the core Login/Logout block form mode, and introduces a Block Form style for the Login/Logout block that renders inputs and controls at full width.

ADDS

  • [BLOCK] New Back to Page Gutenberg block — renders a native core Button that navigates back using browser history when the visitor came from a configured return URL, or falls to a normal link otherwise. Supports multiple configured return paths, ignores query strings and hash fragments for matching, and is fully cache-tolerant. Designed for search, directory, and filtered archive flows where the previous page state should be preserved.

  • [CORE] Redirect to Referrer option for the Core Login/Logout block form mode — when enabled, Yoko Core uses frontend JavaScript to populate the hidden redirect_to field with document.referrer, but only if the referrer is on the same domain. Cache-tolerant and avoids hard-coded redirect URLs at render time.

  • [CORE] Block Form block style for the Core Login/Logout block — sets form, labels, fields, and buttons to block-level full-width elements for a stacked form layout. The remember-me row remains inline.