Viewing 2 replies - 1 through 2 (of 2 total)
  • You can edit this section, located in default.js:

    if (redirect.length) {
           var href = location.href;
           if (redirect.html().length) {
               href = redirect.html();
           }
           window.location = <The location you want>
    }
    Thread Starter bigs38

    (@bigs38)

    Thanks for the answer. But in my case the redirect link is always different. I can’t write a hard link directly in the code because it depend on my posts, or I don’t understand what I can write in windows.location.

    I use some regexp to change links in my posts (when you are not logged) like this:

    https://www.mysite.com/albums?g2_itemId=1234
    
    to
    
    class="simplemodal-login" https://www.mysite.com/wp-login.php?redirect_to=https://www.mysite.com/albums?g2_itemId=1234

    All seems to work when I use the plugin, the only bug is the truncated link, it remove the =1234 at the end.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirect link problem’ is closed to new replies.