Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Markus Johansson 1730 posts 4975 karma points c-trib
    15 days ago
    Markus Johansson
    0

    Disable trailing slash for path or method

    Hi Richard!

    I'm using SEO Checker on a website that also have a web api configured.

    So a PATCH request to /api/products/1 would be redirected to /api/products/1/ which does not route to the right endpoint.

    Is there a way to disable the force trailing slash-settings ie. for /api/ ? Or maybe for PATCH-methods? It looks like POST-method does work.

    // m

  • Richard Soeteman 3910 posts 12217 karma points MVP
    15 days ago
    Richard Soeteman
    100

    Hi Markus,

    If you add the /api/ url to Umbraco.Core.ReservedUrls setting it should be ok again. Alternative you can also add /api/* to app_plugins/seochecker/config/botfilter.config

    Hope this helps,

    Richard

  • Markus Johansson 1730 posts 4975 karma points c-trib
    1 week ago
    Markus Johansson
    0

    Thanks for the fast response Richard!

    ReservedUrls did the trick =D

    // m

Please Sign in or register to post replies

Write your reply to:

Draft