Giter VIP home page Giter VIP logo

Comments (8)

johntom avatar johntom commented on July 23, 2024

I've experienced this and have a working copy and using beyond compare to determine what is different. Will hopefully have something later today but my guess is that some lib has changed (sails-disk?).

John

From: tidelipop [mailto:[email protected]]
Sent: Monday, April 21, 2014 6:22 AM
To: ryancp/sailng
Subject: [sailng] Back and forward doesn't work as expected (#6)

After clicking som links I noticed that Register and Login doesn't look like the other "pages". I is missing the header. There is just the form, nothing else. Should it be like that? ...and if I after going to either the Register och Login page, then trying to go back with the back button, well the URL change but nothing else...


Reply to this email directly or view it on GitHub #6 . https://github.com/notifications/beacon/1877376__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxMzY5NDkwNSwiZGF0YSI6eyJpZCI6MzA0MjUxNjF9fQ==--4f529bffd3accb8837259cde4f0c4fc5a1c8400d.gif


No virus found in this message.
Checked by AVG - www.avg.com
Version: 2014.0.4355 / Virus Database: 3882/7371 - Release Date: 04/20/14

from sailng.

johntom avatar johntom commented on July 23, 2024

Beyond compare show problems in \sails repo.

I tried a manual npm install

[email protected]

[email protected]

Had the same error

I then copied over a node_modules \sails from a working install the repo works fine.

I even deleted .tmp/localDiskDb.db for many of the tests. (make sure you use a 8 char password as minimum).

Right now I think something is wrong with npm sails...

FYI, I ran into same issues testing my fork.

John

attached image shows missing directories.

From: tidelipop [mailto:[email protected]]
Sent: Monday, April 21, 2014 6:22 AM
To: ryancp/sailng
Subject: [sailng] Back and forward doesn't work as expected (#6)

After clicking som links I noticed that Register and Login doesn't look like the other "pages". I is missing the header. There is just the form, nothing else. Should it be like that? ...and if I after going to either the Register och Login page, then trying to go back with the back button, well the URL change but nothing else...


Reply to this email directly or view it on GitHub #6 . https://github.com/notifications/beacon/1877376__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxMzY5NDkwNSwiZGF0YSI6eyJpZCI6MzA0MjUxNjF9fQ==--4f529bffd3accb8837259cde4f0c4fc5a1c8400d.gif


No virus found in this message.
Checked by AVG - www.avg.com
Version: 2014.0.4355 / Virus Database: 3882/7371 - Release Date: 04/20/14

from sailng.

johntom avatar johntom commented on July 23, 2024

Sorry for prevous post as it was wrong even though it worked somethomes, I finally found the issue
balderdashy/sails#1607
Change .done to .exec (.done is a deprecated / possibly removed alias for .exec)

from sailng.

drmikecrowe avatar drmikecrowe commented on July 23, 2024

@johntom -- does this just fix back/forward? Allowing registration? Header on register/login?

I've tried this fix, and I can register now, but the Registration/Login page is still missing the header, and back/forwards still doesn't wrok

from sailng.

johntom avatar johntom commented on July 23, 2024

I believe that's because they are not defined as partials. Will eventually get to this or perhaps Ryan has something in the works.

from sailng.

ryancp avatar ryancp commented on July 23, 2024

@drmikecrowe, that's correct - the header is missing on register and login views. This is because they are outside of the angular single page app.

The back button issue where you go to /register and then try to go back to /home for example, doesn't happen in firefox oddly enough. Not sure what the issue is with chrome.

I am looking into this one. Let me know if anyone has an idea about the root cause.

from sailng.

LeonardoGentile avatar LeonardoGentile commented on July 23, 2024

I have this one too

from sailng.

huguangju avatar huguangju commented on July 23, 2024

if you comment these codes:

$urlRouterProvider.otherwise(function ($injector, $location) {
        console.log($location.$$url, $location.$$absUrl, $location.url(), $location.absUrl())

        if ($location.$$url === '/')     {
            window.location = '/home';
        }
        else {
            // pass through to let the web server handle this request
            window.location = $location.$$absUrl;
        }
    });
    $locationProvider.html5Mode(true);

and uncomment this line of code:

// $urlRouterProvider.otherwise( '/home' );

everything will be ok!

I want to know to do so much for what purpose? just let the web server handle this request? why?

from sailng.

Related Issues (20)

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.