Support » Plugin: Permalink Manager Lite » Learnpress page issue – possible to exclude URL?

  • Resolved ctyldsley

    (@ctyldsley)


    Hi guys,

    Our client’s site uses Learnpress – an online course management system. As part of this each user has a profile page – /lp-profile/. These profiles are then followed by the email address of the user to view their public profile e.g /lp-profile/name@emailaddress.com.

    However with Permalink Manager activated for some reason it’s overriding these pages so any particular URL page automatically redirects to the base root /lp-profile instead. As a result it’s impossible to view users profiles when Permalink Manager is setup. We’ve tried changing the URL, alongside various options, but there doesn’t seem to be any option to just exclude a specific page e.g /lp-profile/ from being touched by Permalink Manager.

    What can we do here to avoid the plugin breaking this core site functionality?

    Cheers,

    Charles

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Maciej Bis

    (@mbis)

    Hi @ctyldsley,

    Could you try to use the below code snippet? This should disable the canonical redirect triggered on LearnPress pages.

    https://gist.github.com/maciejbis/5f2fd2b7c348f7491f9d13e486ba0521

    Best regards,
    Maciej Bis

    Thread Starter ctyldsley

    (@ctyldsley)

    Brilliant, thanks so much Maciej – that’s done the trick! All working perfectly.

    Will it be possible to manually exclude page IDs in the future via the plugin settings rather than a code snippet?

    Plugin Author Maciej Bis

    (@mbis)

    Hi @ctyldsley,

    Yes, this feature is on my to-do list. I am planning to add two new fields in the plugin settings: first one to allow users to manually exclude the post/page/CPT items IDS + second one for categories/tags/custom taxonomy items.

    Also, the snippet I mentioned will be included in the next version of Permalink Manager 🙂

    Best regards,
    Maciej

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.