How to ungenerate tos/privacy topics?

Permanently deleting is possible, but it still shows the tab on the /about page. How would one get rid of it completely?

I think if you remove the company name you’ve set in the admin settings then those tabs magically disappear again. :magic_wand: :slight_smile:

(Unless you’ve set overrides in tos url and/or privacy policy url, otherwise you’d need to remove those as well)

I’d cleared all those fields and it still stays. Does it matter if you edited the post?

1 Like

Ah yes, it does appear that making an edit to them makes them more sticky.

To get round this, I used the ‘replace text’ option on the /admin/customize/site_texts page to replace the edited ones. Then I added a value to company name, saved, and then reset that setting - and that seemed to make them disappear again. Hopefully you’ll have similar success. :crossed_fingers: :slight_smile:

2 Likes

Hmmm. I think i broke something when permanently deleting the topic via rails console.

The replace text throws an error for me.

1 Like

I think you may have done. :slight_smile: Side-stepping the UI and deleting the (supposedly) undeletable topics can have some unforeseen consequences. :slight_smile:

Though it’s an easy fix. :partying_face: :slight_smile: (using the rails console)

There are a couple of hidden site settings where you’ll need to replace the topic_id for a ‘new’ topic you can have in its place.

There’s a bit more detail in this post - How to regenerate FAQ and TOS pages? - #2 by gerhard

And here’s the hidden settings guide - Hidden Site Settings Reference Guide

The two you want are privacy_topic_id and tos_topic_id

4 Likes

yep this one did the trick!

I am slowly crawling back up after digging that hole and diving head-first into it :blush:

…and the replace worked! Thanks @JammyDodger!

1 Like

You’re certainly not the first. :slight_smile: I’m glad that’s done the job. :tada: :balloon: