Remove Trailing slash in canonical URL

This topic contains 5 replies, has 3 voices, and was last updated by  Jreth Ws 5 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #474140

    Jreth Ws
    Expired Member
    Post count: 51

    My listing URL is as below:

    example.com/food/usa/newyork/restaurant/nitzburger
    but all my canonical URLS as below:
    example.com/food/usa/newyork/restaurant/nitzburger/

    How do I force all canonical to end without the trailing slash?

    My permalink setting:
    /%country%/%city%/%category%/%postname%/ (Custom base)

    Thanks

    #474192

    Paolo
    Site Admin
    Post count: 31206

    Try changing your permalinks settings too:

    /%country%/%city%/%category%/%postname%

    Thanks

    #474193

    Jreth Ws
    Expired Member
    Post count: 51

    Tried that but WP doesnt allow me to save.

    Can I manually change in DB? Which table to do this?

    Thanks

    #474205

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    This seems to be a bug, i have fixed this and it will be in the next release, if you need it sooner best replace this file in your plugin https://github.com/AyeCode/geodirectory/blob/master/includes/admin/class-geodir-admin-permalink-settings.php

    Thanks,

    Stiofan

    #474263

    Jreth Ws
    Expired Member
    Post count: 51

    Thanks Stiofan but the replacement doesnt solve the problem.
    Im using GDV2 with supreme theme. Am I missing out anything?

    Thanks

    #474298

    Jreth Ws
    Expired Member
    Post count: 51

    Got it working. Changed in permalink. Thanks

Viewing 6 posts - 1 through 6 (of 6 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket