- πΊπ¦Ukraine mykola dolynskyi Poltava
made a crutch https://www.drupal.org/project/drupal/issues/2852107#comment-14940573 π PathValidator::getUrlIfValid() does not support non-HTML/non-GET routes Active
I have a Rest path which I can call using /path/to/rest?_format=json.
Before #2449143: REST views specify HTML as a possible request format, so if there is a "regular" HTML view on the same path, it will serve JSON β , I could use \Drupal::service('path.validator')->getUrlIfValid('/path/to/rest'). Now that throws an exception "No route found for the specified format html".
How can I get the Url object to /path/to/rest?
Closed: duplicate
8.5 β°οΈ
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
made a crutch https://www.drupal.org/project/drupal/issues/2852107#comment-14940573 π PathValidator::getUrlIfValid() does not support non-HTML/non-GET routes Active