It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to remove special character from article created.

I have created one article in confluence, and by mistake I have added special character "|" in title.

when I open that article page it does not open that page it gives error

"

This page isn’t working

If the problem continues, contact the site owner.

HTTP ERROR 400"

Now I am unable to delete or edit the article. I believe special character "|" could be the reason for this.

Help me delete/edit that article.

3 answers

2 accepted

0 votes
Answer accepted

There's a clunky fix to this.  Let's say your Confluence is running on https://myconf/

If you go to https://myconf/pages/resumedraft.action?draftId=46727175 then you will be able to edit the page and remove the special character (which is likely to be the problem, as you have thought).  Note that the number is a random one from my Confluence and it is the ID of the page you want to edit.

You often won't know the page ID.  To get it, create a new page in the current space, and use the re-order pages function in space admin to move the broken page beneath it.

Now go to "user macros" and create one called something like "child ids", with the output set to none, and the following body code:

#foreach ($child in $content.children)  
  
$child.getIdAsString()
#end

For later versions of Confluence, you may need

#foreach ($child in $content.children)
<p>${child.title}: ${child.id}</p>
#end

 

Add this to the top level new page, and save the page, it will now give you the id of the page to use in the edit url.

This worked perfectly, thank you so much!

0 votes
Answer accepted

This worked perfectly, thank you so much!

Hi @Nic_Brough__Adaptavist_ 

Please let me know, how to get all page ids with page names in that space, below i used to get page ids but only getting for child pages of that parent page.

## @noparams
#foreach ($child in $content.children)
<p>${child.title}: ${child.id}</p>
#end

 

Thanks,

Fayaz

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

What project did you transition or start on Confluence with the shift to remote work?

It’s been great to hear from fellow users over the last few weeks about the best tips and fun moments you’ve had working on Confluence since the transition to working remote. I’d love to keep the c...

32 views 2 4
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you