Support » Theme: Miyazaki » Scrolling changes URL but new URL causes 404 error

  • Resolved sjbates

    (@sjbates)


    Hi,

    I currently have my permalinks configured as:

    /%category%/%postname%

    This is slightly different from the default as I have removed the ending /

    I have installed the script at https://adventurer.blog/europe and when you scroll down the page changes the URL. Instead of changing it to https://adventurer.blog/europe/page/2 it changes it to https://adventurer.blog/europepage/2/ which technically is invalid so if anyone copies the URL it turns into a 404 error.

    It seems the theme is expecting the URL to already end in /

    Would this be a bug as I’m sure I’m not the only person doing this as WordPress sayings nothing about / being mandatory?

    Regards,

    Steve.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • prateekshawebdesign

    (@prateekshawebdesign)

    Hi Steve.

    >> WordPress sayings nothing about / being mandatory

    ‘/’ is mandatory. WordPress will not say anything about it as it is coding related and not a part of the documentation.

    WordPress creates tons of urls by suffixing the slug to the base url. It is pointless to check the base url every time if ‘/’ exists or not. Hence it is mandatory to have base url ending with a ‘/’ so that the new urls created are separated from the slug by a ‘/’.

    Theme Author Anders Norén

    (@anlino)

    Hi @sjbates,

    I’ve updated the history functionality to handle permalinks without an ending slash.

    — Anders

    @anlino Thats great, thank you for the quick response and fix 🙂

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