Issue #6674šŸ’¬ AnsweredOpened Dec 14, 2025by OfirD10 reactions

Anchor links with hash navigation don't work in preview mode

Quick answerby doudou673

I encountered the same problem.

Read full answer below ↓

Question

GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome 143.0.7499.41 Reproducible demo link https://jsfiddle.net/mghzw41k/2/ Describe the bug On preview mode, anchor links with hash navigation (e.g., href="#section") don't work. The default browser navigation behavior is prevented, even though preview mode should (I think) allow normal page interactions. How to reproduce the bug? Initialize GrapesJS editor Add content with an anchor link pointing to a section: <a href="#about">Go to About</a> Add a target section: <section id="about">About Sect...

Answers (2)

doudou673• Feb 9, 2026

I encountered the same problem.

GJS Helper• May 17, 2026

The issue you're experiencing with anchor links (hash navigation) not working in GrapesJS preview mode is a common behavior stemming from how GrapesJS handles interactions within its canvas. In editing mode, GrapesJS intercepts click events on elements, especially links, to prevent navigation and i...

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.