• I had a few problems this morning which I’ve mainly resolved but as a result of them the word ‘trashed’ has suddenly appeared in the URL of a number of pages. They seem to be from just one set of sub-menus (i.e. every one of about 6 sub-menu pages under a specific navigation menu). So a bunch of links don’t now work – does anybody know how to properly remove the word ‘trashed’ and get me back to where I was?

    Thanks

    Tony

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator t-p

    (@t-p)

    Have you tried: – Flushing any caching plugins you might be running, as well as server and/or browser caches. Not just your browser, but any op cache or content network cache as well such as Cloudflare. That will solve many weird JavaScript issues.
    – deactivating ALL (yes all) plugins temporarily to see if this resolves the problem (plugin functions can interfere). If this works, re-activate them individually (one-by-one) to find the problematic plugin(s).
    resetting the plugins folder by FTP. Also remember to deactivate any plugins in the mu-plugins folder (if you have created such folder). The easiest way is to rename that folder to mu-plugins-old.
    – switching to the unedited default Theme (Twenty Sixteen) for a moment using the WP dashboard to rule out any theme-specific issue (theme functions can interfere like plugins).

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    If you trash a page/post, “-trashed” is added to its slug. If you have links pointing to that page (e.g., in a menu) those links will be to the trashed page. Trashing a page does not remove menu items that point to it. So, if you trash a page, remember to clean up your menus.

    Thread Starter Tonymus

    (@tonymus)

    Thanks Steve. I didn’t think I’d trashed these particular pages but I guess I must have. My problem now is how to rename them without the offending word. What do you mean by clean up my menus?

    Thanks again

    Tony

    Thread Starter Tonymus

    (@tonymus)

    Sorry t-p. I’d missed your post earlier. I’ll try some of those things now.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    If you trash a page, remove it from your menus. If you restore them from trash, the “-trash” will be removed.

    Thread Starter Tonymus

    (@tonymus)

    That was truly astonishing, Steve! It was like actual magic. The interesting thing is that I hadn’t deleted the affected pages but rather the one which sits above them (and on the same hierarchical level). The word _traashed had not appeared in that particular page. However, when I restored that all the links in the other corrected themselves instantly. I had to pinch myself! The page in question does link to the affected pages via images in a gallery so perhaps that is what caused it.

    Anyway, problem solved.

    Many thanks.

    PS t-pp – in addition I am now thoroughly flushed!

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    ah, yeah. If B is a child of A, then the URL is site.com/A/B. If you trash A, then the URL becomes site.com/A-trashed/B.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Trashed has appeared in certain URLs’ is closed to new replies.