Link in a "footer" when using a Master Page

Issues related to hyperlinks and web site navigation.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/links.html
Post Reply
RBGB_ita
 
 
Posts: 4
Joined: Thu Nov 28, 2019 9:26 pm

Link in a "footer" when using a Master Page

Post by RBGB_ita » Thu Nov 28, 2019 9:51 pm

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

User avatar
Pablo
 
Posts: 18759
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

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

Post by Pablo » Fri Nov 29, 2019 6:33 am

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.

RBGB_ita
 
 
Posts: 4
Joined: Thu Nov 28, 2019 9:26 pm

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

Post by RBGB_ita » Fri Nov 29, 2019 1:50 pm

Ok ... but in the header the links work correctly ...

User avatar
Pablo
 
Posts: 18759
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

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

Post by Pablo » Fri Nov 29, 2019 2:00 pm

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.

RBGB_ita
 
 
Posts: 4
Joined: Thu Nov 28, 2019 9:26 pm

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

Post by RBGB_ita » Fri Nov 29, 2019 9:15 pm

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.

User avatar
Pablo
 
Posts: 18759
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

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

Post by Pablo » Sat Nov 30, 2019 6:24 am

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.

RBGB_ita
 
 
Posts: 4
Joined: Thu Nov 28, 2019 9:26 pm

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

Post by RBGB_ita » Sat Nov 30, 2019 2:50 pm

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

User avatar
Pablo
 
Posts: 18759
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

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

Post by Pablo » Sat Nov 30, 2019 3:17 pm

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.

Post Reply