Direct link from a menu

Post Reply
User avatar
LRAM
Master Bludit
Posts: 126
Joined: Sat Sep 24, 2016 4:02 pm
Location: France
Contact:

Thu Jan 03, 2019 8:53 am

Hi

this site - https://sucrepop.com/- serves as the home page for 4 sub-sites
I would like to be able to return to the entry site of any page of any site, or to switch from one to the other without going through the home page
A static page in a menu of each sub-sites would be ideal, but I haven't found a way to make a menu title react as a link
is that possible?
User avatar
Edi
Site Admin
Posts: 1663
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Fri Jan 04, 2019 10:20 am

A possibility is creating a page with a redirect.

You can either add a redirect rule to the file .htaccess or with JavaScript.

To redirect for example the page with the pretty URL "forward" to Google with .htaccess you can use:

Code: Select all

Redirect /foward/ http://www.google.com/
The same with adding a JavaScript to the page:

Code: Select all

<script type="text/javascript">
    window.location = "http://www.google.com/";
</script>
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
User avatar
LRAM
Master Bludit
Posts: 126
Joined: Sat Sep 24, 2016 4:02 pm
Location: France
Contact:

Mon Jan 07, 2019 4:54 pm

I created a static page home
on this page, in source mode, I added the script windowlacation
I see the page in the menu, but when I click on it, nothing happend. when I check the source code, the script is no more there
User avatar
Edi
Site Admin
Posts: 1663
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Mon Jan 07, 2019 5:24 pm

You have to use either the editor SimpleMDE or add the script to the file index.txt of the page.

It's not possible to add code with the editor TinyMCE.
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
Post Reply