How to Redirect The Menu Items to Their Respective First Child Item?

Permalink 1 user found helpful
Hi all,
I have another similar post on this issue but not getting any reply so thought open a new one. So here are my queries:

1) How to add an internal link of an internal page (a page in the similar site not external) under a menu item as a child menu?

2) How to redirect the main menu to it's child menu which will be added following the first query?

And the post I was talking about at the top, here it is:
https://www.concrete5.org/community/forums/usage/why-redirecting-men...

Thanks In Advance!

 
PineCreativeLabs replied on at Permalink Reply
PineCreativeLabs
There are a few redirect addons available in the marketplace that can help with this:

Page Redirect (free): http://www.concrete5.org/marketplace/addons/page-redirect1...

Page Child Redirect ($15):http://www.concrete5.org/marketplace/addons/page-child-redirect...
TPritam replied on at Permalink Reply
Can't it be done without any add-on?
PineCreativeLabs replied on at Permalink Reply
PineCreativeLabs
One thing you could do would be to assign additional URLs to the pages you're trying to link to, so they match the re-direct.

To do this, you would need to work with the Location for each page. Learn more here:
https://documentation.concrete5.org/editors/in-page-editing/the-tool...
mesuva replied on at Permalink Reply
mesuva
Are you thinking of the 'replace_link_with_first_in_nav' attribute?

You create that new checkbox attribute and assign it to the parent item - then that links to the first child url instead.
Gondwana replied on at Permalink Reply
Gondwana
Useful! Thanks!
TPritam replied on at Permalink Reply
Hi Mesuva,
Thanks you very much for your reply. I have done the same previously and got a problem with this.
I have redirected my site nav menu items to their first child item. Note that those child items are actually inserted as external link (a link to another page of the same website not a different site) through 'Add External Link' option in the site map. As I have redirected the menu items (please see the menu items here athttp://exrx.net/concrete/) 'Topics' 'More' 'Stores' to their respective first menu item, they work fine. No issue with that. But if you hover your mouse over those main nav items 'Topics' 'More' 'Stores' you will notice the link at the bottom left corner of your screen are different and shows the whole URL to the child page. See the attachments. For example, if you 'Stores' will go to 'ExRx.net Store' the first child item and it goes well but the url it shows you when hover over on 'Stores' is like this: "http://exrx.net/concrete/Stores/httpexrxnetconcretestore"
whereas it should say "http://exrx.net/concrete/Store" (ultimate targeted link where it will go, don't get confused by 'Stores'=> The Main Menu Slug and 'Store' => Child Menu Slug)

Similarly the other one 'More' options shows you the URL like this:
"http://exrx.net/concrete/More/notessitejournal" whereas it should say: "http://exrx.net/concrete/Notes/SiteJournal" as "Note/SiteJournal" is the path to that first child page.

In the other one 'Topics', it shows you "http://exrx.net/concrete/Topics/3209" whereas it should say "http://exrx.net/concrete/Beginning" as 'Beginning' is the URL Slug and path to the first child Menu.

I don't have any complain with it's work. It works fine, it goes to the right place but I don't know why it shows such long url somewhere wtih http somewhere without http and somewhere with numbers.

Sorry for such a long post. Thank you very much reading till the end and can you please tell about it's behavior or how I can make it as real URL it should be?

Thanks In Advance!
ramonleenders replied on at Permalink Reply
ramonleenders
In addition to that, Page Child Redirect is $7 per license if you buy 5. So that makes a total of $35 and you can use it for 5 sites.

There are loads of options available and you don't need to code anything at all. Download, install and add the attribute and select where you want to redirect to.
MaxGT replied on at Permalink Reply
The problem with addons is that when it comes time to update your site you'll find out that some have become outdated and some devs take too long or just don't update their addons. I prefer not to rely on addons at all, not even the free ones.