nystudio107 / retour

DEPRECATED Retour allows you to intelligently redirect legacy URLs, so that you don't lose SEO value when rebuilding & restructuring a website.
Other
168 stars 24 forks source link

'No Data Available' on production #109

Closed missmatsuko closed 6 years ago

missmatsuko commented 6 years ago

We seem to be having a problem viewing redirects when we moved our project from stage to production.

On stage, I see a list of redirects when I go to Retour. On production, I see a message that says "No Data Available".

We can see the redirects in the database and the redirects are working.

It seems like I can still add new redirects, and they work, but I can't view them (and therefore modify them) from the CMS.

I can't reproduce the issue locally by pulling the production database and setting the environment to production.

Also noticed that I'm getting a JS console error in production on the Retour dashboard page, and not on stage:

Error: Request failed with status code 302

DashboardChart.vue:33
VM903:1 GET https://mysite.url/login 404
load-error Error: Request failed with status code 404
at e.exports (createError.js:15)
at e.exports (settle.js:18)
at XMLHttpRequest.d.(anonymous function)

Vuetable.vue:772
missmatsuko commented 6 years ago

The request being made is to /retour/tables/dashboard, which requires log in. Since we have CloudFront set up on production to drop cookies from non-POST and non-/admin URLs, the session cookie isn't present and we're being redirected to a login page.

Would it be possible/practical to serve resources which need authentication from a /admin URL? In the meantime, we can change our CloudFront rules to cover /retour.