The JIRA server does not support trust requests. Issues have been retrieved anonymously. You can set the macro to always use an anonymous request by setting the anonymous parameter to true
The JIRA server does not support trust requests. Issues have been retrieved anonymously. You can set the macro to always use an anonymous request by setting the anonymous parameter to true
The JIRA server does not support trust requests. Issues have been retrieved anonymously. You can set the macro to always use an anonymous request by setting the anonymous parameter to true
The JIRA server does not support trust requests. Issues have been retrieved anonymously. You can set the macro to always use an anonymous request by setting the anonymous parameter to true
Thanks for the very nice macros! They fill in some features that we really ...
Thanks for the very nice macros! They fill in some features that we really need (like redirect after page deletion/move). Alias is a nice idea that would've been even better if it works across spaces.
BTW, both alias and redirect worked in our 1.4.3 installation.
Thanks
There is actually no technical reason that alias can't work across spac...
Thanks
There is actually no technical reason that alias can't work across spaces. The main reason I haven't enabled it is that it could present potential security holes. Currently, anyone with edit access to a space can set up an alias. However, not everyone who has edit access to one space has the same permissions on another space. So, if the macro allowed cross-space aliases, what happens when a user who doesn't have edit access to the other space modifies the cross-space alias? I can't allow them to modify the other space which they don't have edit access to, but now my alias macro is out of sync with reality.
I am planning on adding better page-rename/movement tracking to redirect in a future version, meaning that if the page the redirect is pointing to changes its name or space, the redirect updates itself automatically. This will mean you can set up a redirect and forget about it. Hopefully this will meet your cross-space alias requirements.
Otherwise, do you have a specific example you could give me where cross-space aliasing would be useful?
Thanks! I thought that security was probably a concern for alias across spa...
Thanks! I thought that security was probably a concern for alias across space. I don't have a specific example for cross-space aliasing, I just felt that as with redirect, across-space situations are probably more frequent than intra-space situations, especially for cases where the spaces share some info.
That said, I felt that redirect is generally good enough for all situations. Alias is a bit tougher to get rid of, and might create problems (I opened a Confluence issue after using Alias macro in 1.4.3, deleting it, and ported it to 1.4.4 to find a nullpointerexception due to an empty-titled page left behind by Alias macro somehow). So I'd recommend redirect over alias. Is there any specific occasion where it's better to use alias over redirect, though?
The difference is mostly a matter of perspective. I personally use redirect when...
The difference is mostly a matter of perspective. I personally use redirect when a page has changed location or name, but was well-known enough to be linked elsewhere. Alias I use when I have a page which may be known by more than one name, or by it's plural form. The main advantage of alias is that it will update any aliases if the name of the original page changes. Redirect does not currently keep track (it hopefully will in the near future).
And if you get any error messages, please feel free to post details here and I'll try to fix them for the next release. Any stack-traces are particularly useful. Just remember to put them in a {noformat} macro or it will look really bad...
Ah, ok. I'll make sure alias is checking that the names provided are valid pages...
Ah, ok. I'll make sure alias is checking that the names provided are valid pages in the next version. I'm in the process of setting up a Jira projects for all my macros (kindly provided by the boys at Adaptavist), which will be the best way of reporting bugs/requesting new features in the future. Stay tuned!
Actually, I have a specific example if you don't mind my piping up.
As an orgni...
Actually, I have a specific example if you don't mind my piping up.
As an orgnization, we have created quite a few spaces as we utilize Confluence. This is pretty cool except that the various non-technical users have requested a high-level navigation for the site. I created a page hierarchy to match the top-level spaces and use the
Unknown macro: {pagetree }
macro to show a quick (and fairly slick) tree view of the major entry points on our Wiki. I had intended to use the
Unknown macro: {alias }
macro to have these pages basically redirect to the home pages for those spaces.
Anyway, the solution looks and works well, but alias does seem like a better fit. I actually *want* the editors of those pages to control the content even though they don't have edit access to my space.
Now, there may be a better way to accomplish what I wanted, but this does work.
I'm not quite sure what you're trying to achieve, or whether you're making a fea...
I'm not quite sure what you're trying to achieve, or whether you're making a feature request or giving a working case...
In your case, from what I think I understand, it seems to me that the {redirect} macro would serve you better than {alias} anyway... In your 'Navigation' space, create a page called 'Section X' which has '{redirect:Section X Space:Home}' as it's contents (with 'Section X Space' replaced with the appropriate space key, of course).
Yeah, that should work. However, I am aware of a couple of bugs in the visibilit...
Yeah, that should work. However, I am aware of a couple of bugs in the visibility macros which may cause problems. If it doesn't work, let me know the exact filters you're using and I'll make sure they work in the next version (which should be coming out within a day or two).
In MediaWiki, you can move a page, and MW automatically inserts a redirect from ...
In MediaWiki, you can move a page, and MW automatically inserts a redirect from the old to the new. Do I gather that Confluence doesn't have this feature? (Otherwise, why would redirect be an optional plugin from a 3rd party?)
The redirect plugin is designed for creating manual redirects and aliases and it...
The redirect plugin is designed for creating manual redirects and aliases and it's free (download at top of this page).
When you move pages in Confluence, the wiki automatically updates all links to those pages. Anything still linking to a moved page results in a "page not found" screen which intelligently lists the new page (if it was moved or renamed) and also suggests other pages with the same name, etc.
Yes, that's correct. You can manually create a redirect using this plugin.
That...
Yes, that's correct. You can manually create a redirect using this plugin.
That said, it would be quite possible to have a plugin listen for page rename/move events and automatically create a redirect page for the move. Could be worth adding as an option to this plugin. If you'd like to see that added at some point, feel free to add a feature request. I'm currently doing a walk through all my plugins updating them, so now is as good a time as any...
That's quite possible. I think the main reason it doesn't was for security purpo...
That's quite possible. I think the main reason it doesn't was for security purposes. One user who edits a page in Space A might be able to create pages in Space B, but others may not.
If it's something you would really like to see, I suggest creating a [feature request] with details on your use case and we'll see what can be done in the next version.
Hi Tom,
The way the alias macro works is that it creates a new page and then pu...
Hi Tom,
The way the alias macro works is that it creates a new page and then puts the redirect macro into the new page, there is currently no clean way to get rid of aliases, the 2 methods which I have used in the past include:
If you are system admin you can go to Browse Space -> Pages and just delete the alias from there
Turn off Javascript in your browser (as the redirect macro uses javascript and thus will do nothing if you turn javascript off), then go to the alias page, from there you can edit/remove the page as per normal.
The easiest way I have found to delete an alias is to append ?redirect to the en...
The easiest way I have found to delete an alias is to append ?redirect to the end of the address of the page. That will cause the redirect to not function. Then since it is just a page you can just remove it.
So, where ever you see a link to the alias you need to right-click on it and in the pop up menu click on copy short cut. Then paste that into the address field in your explorer and add the ?redirect at the end. Then click go.
Caution: if the address you get with the copy short cut has the page id # in it this will not work. You would need to manually create the address it would have if it did have the page name in it. (this is some kind of a bug I think but I have never logged it since it does not happen much.)
Comments (25)
Sep 19, 2005
Mingyi Liu says:
Thanks for the very nice macros! They fill in some features that we really ...Thanks for the very nice macros! They fill in some features that we really need (like redirect after page deletion/move). Alias is a nice idea that would've been even better if it works across spaces.
BTW, both alias and redirect worked in our 1.4.3 installation.
Sep 19, 2005
David Peterson [CustomWare] says:
Thanks There is actually no technical reason that alias can't work across spac...Thanks
There is actually no technical reason that alias can't work across spaces. The main reason I haven't enabled it is that it could present potential security holes. Currently, anyone with edit access to a space can set up an alias. However, not everyone who has edit access to one space has the same permissions on another space. So, if the macro allowed cross-space aliases, what happens when a user who doesn't have edit access to the other space modifies the cross-space alias? I can't allow them to modify the other space which they don't have edit access to, but now my alias macro is out of sync with reality.
I am planning on adding better page-rename/movement tracking to redirect in a future version, meaning that if the page the redirect is pointing to changes its name or space, the redirect updates itself automatically. This will mean you can set up a redirect and forget about it. Hopefully this will meet your cross-space alias requirements.
Otherwise, do you have a specific example you could give me where cross-space aliasing would be useful?
Oct 05, 2005
Mingyi Liu says:
Thanks! I thought that security was probably a concern for alias across spa...Thanks! I thought that security was probably a concern for alias across space. I don't have a specific example for cross-space aliasing, I just felt that as with redirect, across-space situations are probably more frequent than intra-space situations, especially for cases where the spaces share some info.
That said, I felt that redirect is generally good enough for all situations. Alias is a bit tougher to get rid of, and might create problems (I opened a Confluence issue after using Alias macro in 1.4.3, deleting it, and ported it to 1.4.4 to find a nullpointerexception due to an empty-titled page left behind by Alias macro somehow). So I'd recommend redirect over alias. Is there any specific occasion where it's better to use alias over redirect, though?
Oct 05, 2005
David Peterson [CustomWare] says:
The difference is mostly a matter of perspective. I personally use redirect when...The difference is mostly a matter of perspective. I personally use redirect when a page has changed location or name, but was well-known enough to be linked elsewhere. Alias I use when I have a page which may be known by more than one name, or by it's plural form. The main advantage of alias is that it will update any aliases if the name of the original page changes. Redirect does not currently keep track (it hopefully will in the near future).
And if you get any error messages, please feel free to post details here and I'll try to fix them for the next release. Any stack-traces are particularly useful. Just remember to put them in a {noformat} macro or it will look really bad...
Oct 05, 2005
Mingyi Liu says:
Thanks for your reply! I see the difference now. As for the bug I mentioned,...Thanks for your reply! I see the difference now. As for the bug I mentioned, I opened the issue at http://jira.atlassian.com/browse/CONF-4222
Oct 05, 2005
David Peterson [CustomWare] says:
Ah, ok. I'll make sure alias is checking that the names provided are valid pages...Ah, ok. I'll make sure alias is checking that the names provided are valid pages in the next version. I'm in the process of setting up a Jira projects for all my macros (kindly provided by the boys at Adaptavist), which will be the best way of reporting bugs/requesting new features in the future. Stay tuned!
May 11, 2006
Brent Haines says:
Actually, I have a specific example if you don't mind my piping up. As an orgni...Actually, I have a specific example if you don't mind my piping up.
As an orgnization, we have created quite a few spaces as we utilize Confluence. This is pretty cool except that the various non-technical users have requested a high-level navigation for the site. I created a page hierarchy to match the top-level spaces and use the
macro to show a quick (and fairly slick) tree view of the major entry points on our Wiki. I had intended to use the
macro to have these pages basically redirect to the home pages for those spaces.
Anyway, the solution looks and works well, but alias does seem like a better fit. I actually *want* the editors of those pages to control the content even though they don't have edit access to my space.
Now, there may be a better way to accomplish what I wanted, but this does work.
May 12, 2006
David Peterson [CustomWare] says:
I'm not quite sure what you're trying to achieve, or whether you're making a fea...I'm not quite sure what you're trying to achieve, or whether you're making a feature request or giving a working case...
In your case, from what I think I understand, it seems to me that the {redirect} macro would serve you better than {alias} anyway... In your 'Navigation' space, create a page called 'Section X' which has '{redirect:Section X Space:Home}' as it's contents (with 'Section X Space' replaced with the appropriate space key, of course).
Or am I misunderstanding you?
Oct 01, 2005
Guy Fraser says:
Am I correct in thinking that you can wrap the {redirect} macro in Unknown macro...Am I correct in thinking that you can wrap the {redirect} macro in
Oct 01, 2005
David Peterson [CustomWare] says:
Yeah, that should work. However, I am aware of a couple of bugs in the visibilit...Yeah, that should work. However, I am aware of a couple of bugs in the visibility macros which may cause problems. If it doesn't work, let me know the exact filters you're using and I'll make sure they work in the next version (which should be coming out within a day or two).
Mar 11, 2006
Dan Hardiker says:
This plugin now accessable through the Confluence Repository Client.This plugin now accessable through the Confluence Repository Client.
Apr 19, 2006
Gee Jee says:
Other than disableing the plugin, how do I go about editing a page that conains ...Other than disableing the plugin, how do I go about editing a page that conains the redirect diretive?
Apr 19, 2006
David Peterson [CustomWare] says:
You have to add '?redirect=false' to the end of the URL of the redirecting page....You have to add '?redirect=false' to the end of the URL of the redirecting page. Eg. for this page, it would be http://confluence.atlassian.com/display/CONFEXT/Redirection+Plugin?redirect=false.
Sep 26, 2006
Dave Yost says:
In MediaWiki, you can move a page, and MW automatically inserts a redirect from ...In MediaWiki, you can move a page, and MW automatically inserts a redirect from the old to the new. Do I gather that Confluence doesn't have this feature? (Otherwise, why would redirect be an optional plugin from a 3rd party?)
Sep 26, 2006
Guy Fraser says:
The redirect plugin is designed for creating manual redirects and aliases and it...The redirect plugin is designed for creating manual redirects and aliases and it's free (download at top of this page).
When you move pages in Confluence, the wiki automatically updates all links to those pages. Anything still linking to a moved page results in a "page not found" screen which intelligently lists the new page (if it was moved or renamed) and also suggests other pages with the same name, etc.
Sep 26, 2006
David Peterson [CustomWare] says:
Yes, that's correct. You can manually create a redirect using this plugin. That...Yes, that's correct. You can manually create a redirect using this plugin.
That said, it would be quite possible to have a plugin listen for page rename/move events and automatically create a redirect page for the move. Could be worth adding as an option to this plugin. If you'd like to see that added at some point, feel free to add a feature request. I'm currently doing a walk through all my plugins updating them, so now is as good a time as any...
Sep 26, 2006
David Peterson [CustomWare] says:
Whoops - correct location for feature requests is here.Whoops - correct location for feature requests is here.
Aug 05, 2008
Bill Street says:
the link to the homepage where it says "For more information, visit this plugin'...the link to the homepage where it says "For more information, visit this plugin's homepage" seems to go to a page that does not work.
Aug 05, 2008
David Peterson [CustomWare] says:
Hi Bill, We had a site update overnight and not all the plugins were re-enabled...Hi Bill,
We had a site update overnight and not all the plugins were re-enabled. It should be back in working order now.
David
Oct 21, 2008
Anna Bauer says:
Hi There is no way to use the Redirection Plugin with an alias pointing to a pa...Hi
There is no way to use the Redirection Plugin with an alias pointing to a page in another space.
{alias:Pagename}is working but
{alias:Spacekeyname:Pagename}is not working although I use your regular naming conventions. I believe such functionality would be useful.
Cheers!
Oct 21, 2008
David Peterson [CustomWare] says:
That's quite possible. I think the main reason it doesn't was for security purpo...That's quite possible. I think the main reason it doesn't was for security purposes. One user who edits a page in Space A might be able to create pages in Space B, but others may not.
If it's something you would really like to see, I suggest creating a [feature request] with details on your use case and we'll see what can be done in the next version.
Mar 02
Tom Lambrechts says:
How do I delete an alias? I tried deleting the alias entry completely or leavin...How do I delete an alias?
I tried deleting the alias entry completely or leaving it empty like
{alias}. Neither of those did work.
I also tried
{alias:Some alias|parent=@self?redirect=false}but that did not remove the alias.
R.
Tom
Mar 03
Bo Wang [CustomWare] says:
Hi Tom, The way the alias macro works is that it creates a new page and then pu...Hi Tom,
The way the alias macro works is that it creates a new page and then puts the redirect macro into the new page, there is currently no clean way to get rid of aliases, the 2 methods which I have used in the past include:
Regards,
Bo Wang
CustomWare
Mar 11
Bill Street says:
The easiest way I have found to delete an alias is to append ?redirect to the en...The easiest way I have found to delete an alias is to append ?redirect to the end of the address of the page. That will cause the redirect to not function. Then since it is just a page you can just remove it.
So, where ever you see a link to the alias you need to right-click on it and in the pop up menu click on copy short cut. Then paste that into the address field in your explorer and add the ?redirect at the end. Then click go.
Caution: if the address you get with the copy short cut has the page id # in it this will not work. You would need to manually create the address it would have if it did have the page name in it. (this is some kind of a bug I think but I have never logged it since it does not happen much.)
Mar 23
David Peterson [CustomWare] says:
Hi Bill, Adding '?redirect' is definitely the workaround. Actually, it should b...Hi Bill,
Adding '?redirect' is definitely the workaround. Actually, it should be '?redirect=false', but either will work.
The issue with '#' URLs is that the '?redirect=false' needs to be before the '#'. Eg:
http://foo.com/blah?redirect=false#blahblahblah
Hope that helps