• Resolved SunnyOz

    (@sunnyoz)


    I have a menu structure that has home page as a parent and has two sub-menus: privacy & sitemap.

    The Permalink for the home page is this:
    https://localhost/mysite/mysiteWP/ (as you would expect.)

    But for the two sub-menus it shows up as this:
    https://localhost/mysite/mysiteWP/home-2/privacy-statement
    https://localhost/mysite/mysiteWP/home-2/site-map/

    Why is the home page now listed as home-2 directory? Where can I change it back to be just home?

    If I actually put this in the address bar:
    https://localhost/mysite/mysiteWP/home/site-map/
    It resolves to this:
    https://localhost/mysite/mysiteWP/home-2/site-map/

    I don’t think this was the way it worked when I first started this site. However, I accidentally deleted my main menu at some point (I know.. my bad!), and had to re-add the menu. It was after this event that I noticed the home-2 in the URLS.

    What is causing it to be home-2, and is there anyway I can change it back to home?

    Thanks,
    SunnyOz

    • This topic was modified 7 years ago by SunnyOz.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter SunnyOz

    (@sunnyoz)

    I got my answer from another forum. I thought I would post the answer here, in case others have the same problem.

    I just had to change the slug, which you can do in quick edit for home page.

    I hadn’t thought to look at quick edit. I had looked through the regular edit page, and couldn’t find the home-2 reference.. and I now realise that is because I didn’t have the slug field ticked to display on the normal edit page from my screen options.

    I’ve changed my slug from home-2 back to home, and all is good now.

    Just in case someone else has this problem.. You have to make sure that there isn’t another page with a slug of home in the Published, Draft, or Scheduled categories. (I had created a previous page named home that was a draft.. which is why my real home page got the slug of home-2 in the first place. But when I had trashed the old “draft” home page, and removed it permanently, it still hadn’t solved my problem.. until I changed my real home page’s slug back to home.)

    Cheers,
    SunnyOz

Viewing 1 replies (of 1 total)
  • The topic ‘how to change home page permalink as referenced in submenu links’ is closed to new replies.