Issue Details (XML | Word | Printable)

Key: REDIR-5
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: David Peterson
Votes: 2
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Confluence Extension: Redirection Plugin

Check for aliases which have been 'cancelled'

Created: 10/Oct/05 09:19 AM   Updated: 09/Oct/06 12:43 PM
Component/s: {alias}
Affects Version/s: 1.4.2
Fix Version/s: Soon

Time Tracking:
Not Specified


 Description  « Hide
Currently, if an {alias} definition is removed, the system still thinks the page is aliased. It would be good to have something check each registered alias and remove them automatically.

The best candidates would be an PageEditEvent listener which checks a new 'last updated' property for the alias.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Guy Fraser added a comment - 09/Nov/05 12:28 AM
This one is certainly ranked very high on my wishlist!

Steve Bachinsky added a comment - 08/Oct/06 04:09 AM
I was attempting to use the {alias} mechanism to automatically build some adaptavist menus (based on the children of a particular page). Wanted to try to use the alias because we needed to reference the same page from two separate menus. So I created an alias and all worked fine, but then I decided to rename the alias. Now I have two aliases being listed in the menu since the old alias is still active.

Before I get myself into more trouble, wanted to check if there were any ideas on how to get rid of the old alias. I was thinking that I could delete the parent page that the alias points to and start over, but not sure if the link will persist if I use the same page name for the parent. Another solution is to start over with a new parent page using a different name, but would prefer to use the original name. Perhaps we can export and edit the XML file, but that is always something that should be done as a last resort. Any suggestions?

It seems as though the plugin documentation should warn of this condition. Someone may accidentally create an alias with a name that is harmful in some way and the page name can't be removed.

Thanks, Steve


David Peterson added a comment - 08/Oct/06 05:08 AM
Hi Steve,

It should be safe to manually delete the Alias page after removing the {alias:Old Page} macro from your aliased page. This request is basically to make it more automatic when removing an {alias} macro to remove the alias page also.


Steve Bachinsky added a comment - 08/Oct/06 01:58 PM
David,

Thanks for getting back so quickly. I apologize if I'm missing something that should be obvious, but how do I delete an alias page that doesn't seem to exist? Normally you need to view the page to have the option to remove it, but when attempting to view an alias page you get sent to the page that the alias points to.

Thanks, Steve


David Peterson added a comment - 08/Oct/06 03:32 PM
Ah - you have to add "?redirect=false" to the URL of the page manually. That way it will display the page without redirecting and you can then delete it via the Edit tab.

Steve Bachinsky added a comment - 09/Oct/06 12:43 PM
Yes, that was the trick I was looking for.

Thanks, Steve