Support » Plugin: LH Instant Articles » Settings page form has incorrect action URL.

  • Greetings,

    In some hosting situations SERVER_NAME isn’t intended to be used as the site URL, resulting in an action URL that looks like this: http://wp-admin/options-general.php?page=lh-instant-articles%2Flh-instant-articles.php&lh_instant_articles-buster=1523495021 (notice missing HTTP_HOST before wp-admin?).

    The result is users cannot save their settings without manually inspecting and manipulating the DOM.

    It is suggested to either change to use HTTP_HOST or alternatively build the URL with WordPress functions like get_admin_url.

    These changes are suggested in https://plugins.svn.wordpress.org/lh-instant-articles/trunk/lh-instant-articles.php under function curpageurl.

  • The topic ‘Settings page form has incorrect action URL.’ is closed to new replies.