• Resolved Thomymaster

    (@thomymaster)


    Hi

    And another issue

    When i use the [insert-products] shortcode i noticed that the product URLs are malformatted.

    An example is

    mycatalogue.test/katalogproduct/100

    where it should be

    mycatalogue.test/katalog/product/100

    So the “/” between the catalogue name and “product” is missing.

    Best,
    Thomas

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi Thomas,

    Can you send us the exact shortcode that you’re using on that page (e.g. [insert-products…etc] )?

    Thread Starter Thomymaster

    (@thomymaster)

    [insert-products catalogue_url=”http://www.mycatalogue.test/katalog” products_wide=’4′ product_count=’10’]

    Hi Thomas,

    Can you try putting a / after katalog?

    For example:

    
    [insert-products catalogue_url="http://www.mycatalogue.test/katalog/" products_wide='4' product_count='10']
    
    Thread Starter Thomymaster

    (@thomymaster)

    Hi

    Yes that is working, i tried that out a while ago.
    Thats why i came to the conclusion that the / is missing, the products themselve work 🙂

    Thread Starter Thomymaster

    (@thomymaster)

    Hi

    Have you been able to find this issue? Like i said above i tried your approach but its still not working and i assume its a bug (and only one / in the code for the fix) 😉

    Best,
    Thomas

    Hi Thomas,

    By default, WordPress adds the trailing slash to all URLs. This is why we didn’t include the slash there by default, as it’s likely that any link you copy from a WordPress site will already have the trailing slash. And, if for some reason, you copy your URL, and it doesn’t have the trailing slash, you just need to make sure you add it in the shortcode. As such, this isn’t a bug (as everything works just fine if you make sure to have the trailing slash in your URL), but a feature request.

    Thread Starter Thomymaster

    (@thomymaster)

    Oh my bad sorry! 🙁

    I got it wrong, surely its not a bug.

    Thanks a lot

    Best,
    Thomas

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘4.1.12 bug: [insert-products] shortcode generating wrong article URLs’ is closed to new replies.