Logo Hyperlink Issue

david157
98 Posts
david157 posted this 08 November 2015

Hi

I have a logo on all of my pages. I want to be able to click it to take me back to my homepage from any page.

This works fine for all top page menu items but nor for the child pages. My home page is index.html and the url address I am using is index.html.

I think the issue is regarding relative paths but not sure hoe to fix the issue without changing the code on every child page. I'm having the same issue with a text URL (to take me home) on every page.

How do I go about fixing this?

Thanks, David

Hi I have a logo on all of my pages. I want to be able to click it to take me back to my homepage from any page. This works fine for all top page menu items but nor for the child pages. My home page is index.html and the url address I am using is index.html. I think the issue is regarding relative paths but not sure hoe to fix the issue without changing the code on every child page. I'm having the same issue with a text URL (to take me home) on every page. How do I go about fixing this? Thanks, David
Vote to pay developers attention to this features or issue.
8 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 09 November 2015

Hi David,

Please try to use ../index.html instead of index.html. It works fine.

Let us know if you have any further questions.

Thanks,
Ivan

Hi David, Please try to use `../index.html` instead of `index.html`. It works fine. Let us know if you have any further questions. Thanks, Ivan
david157
98 Posts
david157 posted this 09 November 2015

Hi Ivan

If I do that, the sub pages work but the top pages no longer work.

The following happens:
If I put the hyperlink as index.html the top page links point to:
http://127.0.0.1:12080/themler_1257125841/html/themes/CFOD2/editor/runtime/preview/index.html CORRECT
and the child page links point to:
http://127.0.0.1:12080/themler_1257125841/html/themes/CFOD2/editor/runtime/preview/events/index.html which is their parent page and a child of this points to:
http://127.0.0.1:12080/themler_1257125841/html/themes/CFOD2/editor/runtime/preview/events/locations/index.html which its' parent

If I change the URL to ../index.html the top pages links point to:
http://127.0.0.1:12080/themler_1257125841/html/themes/CFOD2/editor/index.html
and the child pages point to:
http://127.0.0.1:12080/themler_1257125841/html/themes/CFOD2/editor/runtime/index.html CORRECT
and their children point to:
http://127.0.0.1:12080/themler_1257125841/html/themes/CFOD2/editor/runtime/events/index.html which is their parent or more specifically their uncle as it is the first one in the list.

I think it needs to be either ../index.html or index.html depending on where the link originates from. Unfortunately, this can't be changed in Themler as the logo is in the header, not a container.

I think maybe this is a job for a developer to sort out? Any ideas?

Thanks, David

Hi Ivan If I do that, the sub pages work but the top pages no longer work. The following happens: If I put the hyperlink as index.html the top page links point to: http://127.0.0.1:12080/themler_1257125841/html/themes/CFOD2/__editor__/runtime/__preview__/index.html **CORRECT** and the child page links point to: http://127.0.0.1:12080/themler_1257125841/html/themes/CFOD2/__editor__/runtime/__preview__/events/index.html which is their parent page and a child of this points to: http://127.0.0.1:12080/themler_1257125841/html/themes/CFOD2/__editor__/runtime/__preview__/events/locations/index.html which its' parent If I change the URL to ../index.html the top pages links point to: http://127.0.0.1:12080/themler_1257125841/html/themes/CFOD2/__editor__/index.html and the child pages point to: http://127.0.0.1:12080/themler_1257125841/html/themes/CFOD2/__editor__/runtime/index.html **CORRECT** and their children point to: http://127.0.0.1:12080/themler_1257125841/html/themes/CFOD2/__editor__/runtime/events/index.html which is their parent or more specifically their uncle as it is the first one in the list. I think it needs to be either ../index.html or index.html depending on where the link originates from. Unfortunately, this can't be changed in Themler as the logo is in the header, not a container. I think maybe this is a job for a developer to sort out? Any ideas? Thanks, David
david157
98 Posts
david157 posted this 12 November 2015

Hi again

Any joy in getting this sorted out yet?

I think it is quite a problem. The issue is to do with relative links and Themler isn't sorting them out properly.

In summary: I have a logo in a row/column with a link back to the homepage on every page - it is in my template.
On all top level pages it points back correctly to preview/index.html
However, on 2nd level pages (sub-menu items), it points back to the first item of it's parent, not the homepage. So in my site for example, the logo on every page under chocolate_fountain_hire point to chocolate_fountain_hire/index.html.

This is repeated for all sub-sub menu items - the link always points up to the parent, not the homepage. And it's nothing to do with the fact that it is a logo. I have some text within my header with the same hyperlink with exactly the same issues.

Try it yourself on a newly created site.

I can obviously sort the issue out by putting an absolute link in but this will mean I can't test the site properly as it will point back to a www. url.

In all the other web creation software packages that I have used (and I think Artisteer did this), you can set the destination for any hyperlink you want by pointing it to a selection of those already created via a pop-down list or something. [I'll put this in as a feature request].

In the meantime, I'm hoping that somebody there can tell me what to do.

Many thanks, David

Hi again Any joy in getting this sorted out yet? I think it is quite a problem. The issue is to do with relative links and Themler isn't sorting them out properly. In summary: I have a logo in a row/column with a link back to the homepage on every page - it is in my template. On all top level pages it points back correctly to __preview__/index.html However, on 2nd level pages (sub-menu items), it points back to the first item of it's parent, not the homepage. So in my site for example, the logo on every page *under* chocolate_fountain_hire point to chocolate_fountain_hire/index.html. This is repeated for all sub-sub menu items - the link always points up to the parent, not the homepage. And it's nothing to do with the fact that it is a logo. I have some text within my header with the same hyperlink with exactly the same issues. Try it yourself on a newly created site. I can obviously sort the issue out by putting an absolute link in but this will mean I can't test the site properly as it will point back to a www. url. In all the other web creation software packages that I have used (and I think Artisteer did this), you can set the destination for any hyperlink you want by pointing it to a selection of those already created via a pop-down list or something. [I'll put this in as a feature request]. In the meantime, I'm hoping that somebody there can tell me what to do. Many thanks, David
Support Team
Support Team posted this 13 November 2015

Hi,

Sorry for the issue.
I've forwarded it to our developers and let you know as soon as they have any news.

Thanks,
Ivan

Hi, Sorry for the issue. I've forwarded it to our developers and let you know as soon as they have any news. Thanks, Ivan
Support Team
Support Team posted this 16 November 2015

Hi David,

Sorry for the delay.

Our developers suggested to use @(pathToRoot)/index.html as a correct path to your homepage.

Please let us know the result.

Thanks,
Ivan

Hi David, Sorry for the delay. Our developers suggested to use `@(pathToRoot)/index.html` as a correct path to your homepage. Please let us know the result. Thanks, Ivan
david157
98 Posts
david157 posted this 16 November 2015

Hi Ivan

That works great thanks :-)

So should I use @(pathToRoot) to reference any other hyperlink? Also, is this a short term fix or is it something that will be sorted out in the future.

Many thanks.

David

Hi Ivan That works great thanks :-) So should I use @(pathToRoot) to reference any other hyperlink? Also, is this a short term fix or is it something that will be sorted out in the future. Many thanks. David
Support Team
Support Team posted this 16 November 2015

Hi David,

Yes, it should work OK.

Actually, it's a kind of undocumented feature our developer told me about :)

Thanks,
Ivan

Hi David, Yes, it should work OK. Actually, it's a kind of undocumented feature our developer told me about :) Thanks, Ivan
david157
98 Posts
david157 posted this 16 November 2015

OK, Great to know :-)

OK, Great to know :-)
You must log in or register to leave comments