Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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 do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

429 views 23 9
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