Comments (8)
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.
Beyond compare show problems in \sails repo.
I tried a manual npm install
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.
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.
@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.
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.
@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.
I have this one too
from sailng.
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)
- Mobile chrome hard crash HOT 4
- Account Creation HOT 1
- Multiple Issues - 0.10.5 HOT 6
- Blank Page HOT 4
- cssFiles not load in pipeline.js
- Failed to serialize user into session HOT 1
- blank browser HOT 2
- Unknown authentication strategy "local" HOT 7
- adding tasks to the Grunt stack
- Sails 0.10 Model.subscribe deprecated HOT 4
- can't install node-XMLHttpRequest module use npm install HOT 1
- testing..
- All attributes other than "title" are sent to sails as a null object
- testing HOT 7
- New Route for socket and glyphs HOT 3
- Can't register a new user HOT 6
- Using this frontend with a blueprint api. HOT 1
- Invalid usage of user`publishAdd(...)` HOT 2
- Question: which node version are you running? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sailng.