You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.
I'm attempting to redirect success auth to /operator folder like this:
app.get('/auth/success', function (req, res) {
res.sendFile(path.resolve(__dirname, '/views/operator/operator.html'));
});
There is no issue with 'not-auth-content' htmls, which i can render with res.render() via ejs engine. And paths looks like localhost/operator, localhost/whatever. I.e. without 'view'. But redirect not working at all.
I dont want to use config successRedirect option to ../../../views/operator/operator.html cause it's open server folder structure. That's the problem with res.sendFile ? I have a same small app w\o feathers (only express) and redirects works well.
The text was updated successfully, but these errors were encountered:
@exppro I don't see anything that would cause a problem, there. You should be able to go to /auth/success and see your operator.html file even without logging in. If that's not the case, could you post a stripped down version of your repo that we could check?
Sorry, im noob. I have this folder structure on server:
I'm attempting to redirect success auth to /operator folder like this:
There is no issue with 'not-auth-content' htmls, which i can render with res.render() via ejs engine. And paths looks like localhost/operator, localhost/whatever. I.e. without 'view'. But redirect not working at all.
I dont want to use config successRedirect option to ../../../views/operator/operator.html cause it's open server folder structure. That's the problem with res.sendFile ? I have a same small app w\o feathers (only express) and redirects works well.
The text was updated successfully, but these errors were encountered: