Jump to content

Error in code block but can't edit it as editor is now broken

Go to solution Solved by paul2009,

Recommended Posts

I added a code block. Put some JS in there. Must have made a typo or some other error because when I refreshed the editor all I see is the Edit button at the top but it doesn't do anything. So I can't edit the page to remove the faulty code.

I tried with /safe on the end of the URL, but that just shows me the homepage. From there if I select the faulty page I want to edit, I'm back where I started... I can't see the content of the page, only an Edit button at the top that doesn't work.

I'm relatively new to SS. I presume this must be a common occurrence and there must be a way to get back into the page to edit it and remove the faulty code - but how?

Thank you.

Link to comment
  • Solution
30 minutes ago, russw said:

I tried with /safe on the end of the URL

The "/safe" must follow "/config", for example mysite.squarespace/config/safe. It cannot be added to any other URL path. Have you tried this?

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.
Catch up on all the release notes and announcements 2023 [for Circle members only] (there's a public version here)

Buy me a coffee

Link to comment

Thank you! That was the problem.

I think the documentation is unclear.

I was reading this page: https://support.squarespace.com/hc/en-us/articles/205815908 which says to put /safe at the end of your "secure editing url". That links to this page https://support.squarespace.com/hc/en-us/articles/219311968 which gives an example of a secure editing url with /pages included:

"When you're logged in, the URL in your address bar looks different... This secure editing URL includes your built-in domain and the slug config. For example: https://example.squarespace.com/config/pages"

Note that the example includes /pages. So I thought it was instructing me to put /safe on the end of that.


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.