Page 1 of 1

Link in a "footer" when using a Master Page

Posted: Thu Nov 28, 2019 9:51 pm
by RBGB_ita
hello, I find a small problem when I create a link from a text placed in a "footer" object from a page inside a folder: the link always points to a page inside the folder itself.
This creates a page not found error.
This only happens if I use a "master page".

Thanks

Re: Link in a "footer" when using a Master Page

Posted: Fri Nov 29, 2019 6:33 am
by Pablo
This is expected behavior.
As mentioned in the help, the master page must be in the same folder as the pages that use it because all links are relative to the page they are on.

Re: Link in a "footer" when using a Master Page

Posted: Fri Nov 29, 2019 1:50 pm
by RBGB_ita
Ok ... but in the header the links work correctly ...

Re: Link in a "footer" when using a Master Page

Posted: Fri Nov 29, 2019 2:00 pm
by Pablo
Maybe the header is not part of the master page?
Or maybe there are not internal links?

Note that it's difficult to help you without seeing what you have done.
It's always useful to include a demo project.
Although, in this case it's most likely related to the fact that master page is in a different folder.

Re: Link in a "footer" when using a Master Page

Posted: Fri Nov 29, 2019 9:15 pm
by RBGB_ita
I created a simple demo to explain the little problem.
The links that point to targets all work both in index and in "pageinfolder" except in the footer of "pageinfolder". This actually points to the target page but inside the folder1: not finding it generates an error.

demo + download project at: http://rbgb.altervista.org/link

Saluti.

Re: Link in a "footer" when using a Master Page

Posted: Sat Nov 30, 2019 6:24 am
by Pablo
I'm sorry, but this is not correct. The master page should be in the same folder as the page that is using it.
The page cannot be in another older because the links are relative to the folder where the master page is in.
The reason for this is that there is only one master page, so the structure is the same for all pages. If you use that structure in another folder then it is not valid.

Re: Link in a "footer" when using a Master Page

Posted: Sat Nov 30, 2019 2:50 pm
by RBGB_ita
But everything works except in the "footer" object...

The structure of the site is a bit complex to have a master page for each folder but I will solve it by moving the "privacy policy" link in the menu.

PS: if my English is not perfect it is because I help myself with google translate.

Site: http://www.cysurya.milano.it

Thanks for everything

Re: Link in a "footer" when using a Master Page

Posted: Sat Nov 30, 2019 3:17 pm
by Pablo
I'm sorry, but the master page must be in the same folder otherwise links will not be valid.
Relative links are only valid from the folder whihc they are in.
Alternately, you can use absolute links.