Interspace Links
Asked by MPal Pal:

I have another tricky scenario with links and I hope someone can help me out please.

Say I have two spaces: A and B. Page a in space A has a link to to page b in space B. I create a new space C, and move both page a and b to space C.

This is what I want: When I click the link in page a which is now in space C to direct to page b in space C.

Is this possible?

Any clue will be really appreciated.


Answers:
author: MPal Pal
body: Thanks for your help guys, I think the problem is because I copy, move and rename. :(


author: MPal Pal
body: Thanks Nic, Nope I do not move the page. I copy the page and move it and rename it. So the original page is always there in space B.

comments: author: Paul Curren
body: What do you mean by copy and then move?

If you take a copy of Page b then this is a whole new page. Lets call it Page b2.

Page a has no reference to this page. So if you move b2 this will have no effect on page a at all. They have no relationship.

I think you might be better breaking down for us in a step by step fashion **exactly** what it is you are doing and then we might be able to understand the behaviour you are experiencing.


author: MPal Pal
body: Thanks for the reply Paul. I am using internal space to space linking. Not hyperlinks. I have third party plugins installed like "copy space", "Tech time's Easy SEO", "copy page tree" etc.

I am not sure how they can interfere with the linking though.


author: MPal Pal
body: Hey Paul,

Thanks so much for your answer. Although this is how it should happen, it does not happen this way :(

I tried this scenario:

1. Page **a** in space A has a link to page **b** in space B
2. I move both **a and b** to space C
3. From space C I click the link in page **a**
4. Unfortunately, I get directed to **B:b** insteaad of **C:b**

What am I doing wrong? I use Confluence 4.2.2

comments: author: Nic Brough -Adaptavist-
body: You are using internal linking and not plain hyperlinks?

When you say you get directed to B:b, what happens when you land there? It should redirect you to the new location and tell you it's moved?


author: Paul Curren
body: I can't think of anything you are doing wrong. It sounds like are encountering a bug.

I can't reproduce the problem - it seems to work fine for me. Is there anything being shown in your server logs that might help explain the problem?

In addition, do you have any 3rd party plugins installed that may be interfering with the link refactoring process?


author: MPal Pal
body: Hi Nic, Nope I do not move the page. I copy the page and move it and rename it. So the original page is always there in space B.


author: Nic Brough -Adaptavist-
body: Argh! Then why did you tell us you were moving it when you're not?

It's doing exactly what it should be doing, page A points at page B which has NOT moved. So there's nothing for confluence to update.


author: Paul Curren
body: Hi there.

The behaviour you describe is exactly what should happen.

The first move of page a to space C does not invoke any link refactoring. The link to page b was always absolute (e.g. \[B:b\]) and will remain valid even from space C.

The second move of page b to space C will cause link refactoring to modify page a so that it's link now becomes \[C:b\].


Tags: copy

link

move

space