Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2017
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. Timothy Case: is the idea behind the javascript redirect that it opens up a new tab or window?
  2. vincew@mac.com: no
  3. vincew@mac.com: it would redirect in the same window/tab
  4. Timothy Case: why js instead of regular redirect?
  5. vincew@mac.com: a regular redirect done how?
  6. vincew@mac.com: as in redirect_to in rails?
  7. Timothy Case: yeah good point
  8. Timothy Case: what's the redirect for?
  9. Timothy Case: so like
  10. Timothy Case: why not have a link
  11. Timothy Case: that goes from
  12. Timothy Case: tcca-car.econify.com
  13. Timothy Case: to
  14. Timothy Case: goldsilver.heroku.com
  15. Timothy Case: but really
  16. Timothy Case: goes through userstore
  17. Timothy Case: so that if the user is arleady logged into
  18. Timothy Case: tcca-car.econify.com
  19. vincew@mac.com: I don't want to put any specific code in the branch for canada since we're trying to unify all countries into the same codebase
  20. Timothy Case: then they can visit goldsilver
  21. Timothy Case: without having to log in again
  22. Timothy Case: okay well if the redirect goes through the userstore
  23. Timothy Case: hmm
  24. Timothy Case: wait let me check something
  25. Timothy Case: okay so the redirect is designed to support what exactly?
  26. Timothy Case: signing in?
  27. Timothy Case: or going from one site to the other?
  28. vincew@mac.com: Ideally you visit car/brigades/5 and it redirects you to gs.heroku and remembers whether you're logged in or not
  29. Timothy Case: ahh okay
  30. Timothy Case: I think I understand now
  31. Timothy Case: yes that could work
  32. vincew@mac.com: cool
  33. vincew@mac.com: so the edit brigade functionality is unescaped
  34. vincew@mac.com: so I should be able to insert javascript there in the brigade description to do the redirect
  35. vincew@mac.com: if you pass along the URL I should redirect to I can test it out
  36. Timothy Case: okay
  37. Timothy Case: so what I should do
  38. Timothy Case: is take the gold silver
  39. Timothy Case: demo
  40. Timothy Case: make sure there is a part that is protected
  41. Timothy Case: and you can't see it unless you are logged in
  42. Timothy Case: I should send you that url
  43. Timothy Case: and if it works
  44. Timothy Case: we have the solution done
  45. Timothy Case: does that make sense?
  46. vincew@mac.com: Can you just redirect me to / and display the username if logged in or a signin button if not?
  47. Timothy Case: yes
  48. Timothy Case: you could do it that way
  49. Timothy Case: want to do that?
  50. vincew@mac.com: ok, let's do it that way then
  51. Timothy Case: okay so I just need to wire up
  52. Timothy Case: the home page
  53. Timothy Case: to display user name
  54. Timothy Case: or sign in
  55. Timothy Case: the url
  56. Timothy Case: will be
  57. Timothy Case: goldsilver.heroku.com
  58. vincew@mac.com: yup
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement