Coder Social home page Coder Social logo

meteor-accounts-entry-flowrouter's People

Contributors

jhgaylor avatar selaias avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

meteor-accounts-entry-flowrouter's Issues

Email to reset password is missing '#' in URL for user click

We have noticed that in the verification email, the URL is:
http://[domain]/#/verify-email/[token]

However, for the reset password email, the URL is:
http://[domain]/reset-password/[token]

Which is missing the # after the domain name. As a result, it does not trigger the provided templates on click in the email and just redirects to a blank page. If the URL is copy and pasted into the browser with a # added, then the templates with this module work as intended.

Can't access provided routes directly

Something strange happening here.

When I go directly to the URL "/accounts/sign-in" in my browser (http://localhost:3000/accounts/sign-in), I get an error: BlazeLayout warning: unknown template ""

However, if I add my own routes "/sign-up" and "/sign-in" to my app, I can go directly to those pages in the browser and the sign-in/sign-up forms render correctly. But if I click the "sign-in" link when viewing the "sign-up" page, it takes me to "accounts/sign-in" but nothing is rendered. No errors display in the console either.

<template name="mainLayout">
    {{> Template.dynamic template=content}}
</template>

<template name="home">
    <div class="container">
        <h1>Welcome!</h1>
        <p>
            <a href="/sign-up">Sign-up</a>
        </p>
        <p>
            <a href="/sign-in">Sign-in</a>
        </p>
    </div>
</template>

<template name="signup">
    {{> entrySignUp}}
</template>

<template name="signin">
    {{> entrySignIn}}
</template>

With the following router.js setup:

FlowRouter.route('/', {
    action: function() {
        BlazeLayout.render('mainLayout', {
            content: 'home'
        });
    }
});

FlowRouter.route('/sign-up', {
    action: function() {
        BlazeLayout.render('mainLayout', {
            content: 'signup'
        });
    }
});

FlowRouter.route('/sign-in', {
    action: function() {
        BlazeLayout.render('mainLayout', {
            content: 'signin'
        });
    }
});

and accountsEntryConfig.js:

// accountsEntryConfig.js
Meteor.startup(function() {
    AccountsEntry.config({
        layoutName: "mainLayout",
        privacyUrl: '/privacy-policy',
        termsUrl: '/terms-of-use',
        homeRoute: '/',
        dashboardRoute: '/dashboard',
        profileRoute: 'profile',
        passwordSignupFields: 'EMAIL_ONLY',
        showSignupCode: false,
        showOtherLoginServices: true,
        fluidLayout: false,
        useContainer: true,
        waitEmailVerification: true,
        emailVerificationPendingRoute: '/verification-pending',
        showSpinner: true,
        spinnerOptions: {
            color: "#000",
            top: "80%"
        }
    });
});

Any ideas how to get the pre-defined routes (/accounts/...) to properly load when hitting the URL directly?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.