• Hello,

    I have an issue with the pagination system to display a members directory.
    It seems to use a query string named “page_78d71”.
    Is that possible to change that to just “page” or something?
    Thanks.

    Best regards,
    Blaise

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @blaise38

    Unfortunately, it is by design so that you can use multiple directories on a single page. That’s a unique ID for the member directory filters.

    Regards,

    Thread Starter blaise38

    (@blaise38)

    Hi,

    While I understand this functionality, I am sorry to say that these URLs don’t look professional at all.
    I am a web developer, so don’t hesitate to go deep if necessary in code or anything: I would like to display URLs like https:/---/people_page/3 instead of https:/---/people_page/?page_78d71=3
    So to totally hide this query string.

    Any advice to easily replace the URLs in the pagination to get such URLs links?
    I already know exactly how to handle the redirections using add_rewrite_rule().

    Best regards,
    Blaise

    • This reply was modified 3 years, 6 months ago by blaise38.
    • This reply was modified 3 years, 6 months ago by blaise38.
    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @blaise38

    Unfortunately, we don’t have a custom code to achieve it but hopefully, someone in the forum has done something similar and shares their solution here.

    Please feel free to create a pull request or post a feature request in our public Github repository: https://github.com/ultimatemember/ultimatemember/issues

    Regards,

    • This reply was modified 3 years, 6 months ago by Champ Camba.
    Thread Starter blaise38

    (@blaise38)

    Hi,

    I watched the pagination template PHP file, but it seems that the links are built/defined elsewhere, probably in JavaScript, can you tell me where exactly?

    Best regards,
    Blaise

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @blaise38

    You can try looking at this javascript file:
    https://github.com/ultimatemember/ultimatemember/blob/master/assets/js/um-members.js

    To allow you to work on the original versions or the not minified files, add this code: define("UM_SCRIPT_DEBUG",true");

    Regards,

    Thread Starter blaise38

    (@blaise38)

    Hi,

    Thanks a lot. I have been able to replace/build the URLs as I want them.
    The only issue I still have right now is that it seems that to refresh a page as an example https:/---/people/3 is redirected to https:/---/people/ (it removes the 3 in this case).

    I have tried to disable the WordPress canonical redirects but it doesn’t change anything.
    Is that Ultimate Member that does that, and how can I prevent it?

    Best regards,
    Blaise

    Thread Starter blaise38

    (@blaise38)

    Hi,

    Is that complicated or something?
    We are quite in a hurry. Our current version of UM seems to not be fully compatible any more with the last WordPress version that prevents us to make some important changes in the members groups, so we have to release this update as soon as possible.

    Best regards,
    Blaise

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Weird query string – page_78d71’ is closed to new replies.