confluence-4.1(latest)
How to make a redirect to a new page(create page in current space with ${not found page} name) on 404 Error in Atlassian Confluence?
I think I need to change action in web.xml:
<error-page> <error-code>404</error-code> <location>/fourohfour.action</location> </error-page>
To something like:
<error-page> <error-code>404</error-code> <location>/createpage.action
?spaceKey=currentSpace&pageTitle=notfoundpagename</location>
</error-page>
Could you please provide me a right syntax?
Sounds good, but it doesn't work:
Existing page:
https://example.com/display/SPACE_NAME/My+App
Link:
It gives me
A different solution to the larger problem is outlined here.
Rather than changing the 404 page, you could change your links to the format-
http:
//xxxxx/pages/createpage
.action?spaceKey=experiment&title=this+does+not+exist&linkCreation=
true
&fromPageId=623770
such that-
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.