Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Timothy Case: is the idea behind the javascript redirect that it opens up a new tab or window?
- vincew@mac.com: no
- vincew@mac.com: it would redirect in the same window/tab
- Timothy Case: why js instead of regular redirect?
- vincew@mac.com: a regular redirect done how?
- vincew@mac.com: as in redirect_to in rails?
- Timothy Case: yeah good point
- Timothy Case: what's the redirect for?
- Timothy Case: so like
- Timothy Case: why not have a link
- Timothy Case: that goes from
- Timothy Case: tcca-car.econify.com
- Timothy Case: to
- Timothy Case: goldsilver.heroku.com
- Timothy Case: but really
- Timothy Case: goes through userstore
- Timothy Case: so that if the user is arleady logged into
- Timothy Case: tcca-car.econify.com
- 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
- Timothy Case: then they can visit goldsilver
- Timothy Case: without having to log in again
- Timothy Case: okay well if the redirect goes through the userstore
- Timothy Case: hmm
- Timothy Case: wait let me check something
- Timothy Case: okay so the redirect is designed to support what exactly?
- Timothy Case: signing in?
- Timothy Case: or going from one site to the other?
- 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
- Timothy Case: ahh okay
- Timothy Case: I think I understand now
- Timothy Case: yes that could work
- vincew@mac.com: cool
- vincew@mac.com: so the edit brigade functionality is unescaped
- vincew@mac.com: so I should be able to insert javascript there in the brigade description to do the redirect
- vincew@mac.com: if you pass along the URL I should redirect to I can test it out
- Timothy Case: okay
- Timothy Case: so what I should do
- Timothy Case: is take the gold silver
- Timothy Case: demo
- Timothy Case: make sure there is a part that is protected
- Timothy Case: and you can't see it unless you are logged in
- Timothy Case: I should send you that url
- Timothy Case: and if it works
- Timothy Case: we have the solution done
- Timothy Case: does that make sense?
- vincew@mac.com: Can you just redirect me to / and display the username if logged in or a signin button if not?
- Timothy Case: yes
- Timothy Case: you could do it that way
- Timothy Case: want to do that?
- vincew@mac.com: ok, let's do it that way then
- Timothy Case: okay so I just need to wire up
- Timothy Case: the home page
- Timothy Case: to display user name
- Timothy Case: or sign in
- Timothy Case: the url
- Timothy Case: will be
- Timothy Case: goldsilver.heroku.com
- vincew@mac.com: yup
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement