• Resolved Todd

    (@toddheslin)


    I always use relative hrefs for my anchors to work across localhost, domainA, domain B and future domains. Eg instead of www.domain.com/this-page, I’ll just use /this-page. I haven’t had any issues so far.

    However with this plugin I am receiving an error for each publish (automated or manual) that says ‘INVALID_DOCUMENT’ with they keyPath root and value of each url in my message.

    The overall response is a 400 Bad Request.

    I could change my URLs for this plugin to work, but ideally I could set a domain preface and change relative urls upon publish.

    https://ww.wp.xz.cn/plugins/publish-to-apple-news/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    Hyperlinks are not supported by Apple News markdown, so that might not actually be the issue.

    You should download the JSON for the problematic article and drag it into the News Preview tool to get the actual error. INVALID_DOCUMENT is just a generic response from the API for any parsing error.

    Thread Starter Todd

    (@toddheslin)

    Great suggestion Bradford. I didn’t know this app existed. Unfortunately it seems to have some bugs and I can’t even get the example Apple News articles to parse using the app. I guess when they fix it I can explore what might be wrong.

    Cheers

    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    Marking this resolved. Please ensure you’re using the latest version of the plugin and News Preview.

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

The topic ‘Error with relative URLs’ is closed to new replies.