Support » Plugin: Login With Ajax » How can I make the redirect URL relative rather than absolute

  • TWD

    (@twd)


    I am hoping to use this plugin on a multi site network.

    The fact that redirects need a fully formed URL (http://wordpress.org/redirect-page/)
    rather than just a relative URL (/redirect-page/) is probably a deal breaker 🙁

    Sad, because I like the look of this plugin for my purposes.

    Are there any hooks we could use to build a custom function to “hard wire” some redirect code variables that would always redirect, say to:
    [current site]/redirect-page/

Viewing 1 replies (of 1 total)
  • Plugin Author Marcus

    (@netweblogic)

    just tested this to make sure, relative URL redirects work fine for me

    looking at the wp_redirect() function we use, it should accept a relative url too:

    $location
    (string) (Required) The
    path or URL to redirect to.

    The hook you’d want is the standard login_redirect hook

    • This reply was modified 3 weeks, 4 days ago by Marcus.
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.