sparkartgroup-archive / sparkart.js

Easily interact with Sparkart's APIs via Javascript.
1 stars 0 forks source link

Register widget shouldn't redirect to Register page on success #21

Closed pushred closed 11 years ago

pushred commented 11 years ago

The Register widget currently reloads the registration page after it's successfully submitted. I currently have a check to send users back to the home page after this, but we should just do that by default. We should also offer a redirect parameter however for sites that may have a fan club's "home page" somewhere other than /.

Fauntleroy commented 11 years ago

You can specify the redirect url in one of two ways:

<div class="sparkart fanclub login" data-redirect="http://www.google.com"></div>

or

new sparkart.Fanclub( KEY, {
    redirect: {
        login: '/'
    }
});