Just read the discussion so let me clarify few things.
Redirects
I’m fine with one redirect after POST. But it needs to be one redirect not 3. I was
complaining about 3 additional redirects after hitting “LOGIN” button.
In apps that I’m author (e.g.
planet.jboss.org) I exactly use that pattern - after HTTP
POST server returns 302 redirect to another page which helps with a) refresh button
problem, b) browser back button problem.
Back button:
From UX perspective the back button must work. Everybody use it. On Mac/iPad users are
used to use gesture. I use it everywhere.
Personally when I come to some site which is trying to force me to use back button on page
instead of back button in browser I always feels like using website written 5 years ago.
Other comments inline.
Thanks,
Libor Krzyžanek
jboss.org Development Team
On Jan 21, 2016, at 3:22 PM, Bill Burke <bburke(a)redhat.com>
wrote:
Yeah, I did that in 1.6....But
jboss.org team didn't like it for performance
reasons.
On 1/20/2016 8:50 PM, Scott Rossillo wrote:
> There's s pattern to handle the back button during flows. It's that a post
should never render a view but redirect (HTTP get) to the failure or success view.
>
>
http://www.codeproject.com/Tips/433399/PRG-Pattern-Post-Redirect-Get
<
http://www.codeproject.com/Tips/433399/PRG-Pattern-Post-Redirect-Get>
> On Wed, Jan 20, 2016 at 7:22 PM Bill Burke <
<mailto:bburke@redhat.com>bburke@redhat.com <mailto:bburke@redhat.com>>
wrote:
>
>
> On 1/20/2016 3:49 PM, Stian Thorgersen wrote:
>> One additional thought. Maybe we could add a field to autheticators to say if
they support back, cancel or nothing. Then the flow would allow going back
if previous supports back. It would allow cancel if all supports it, or nothing is one
says nothing
>>
>> On 20 Jan 2016 19:48, "Stian Thorgersen" <sthorger(a)redhat.com
<mailto:sthorger@redhat.com>> wrote:
>> Firstly, let's drop KEYCLOAK-2325 from 1.8 and see if we can fix it for 1.9.
>>
>> Secondly, the back button should not navigate backwards in the flow. Also, the
refresh button should just redisplay the page as it does now (ignoring the post). A couple
ideas to improve things though:
>>
>> 1) Set cache-control to "Cache-Control: no-store, must-revalidate,
max-age=0". This should force a reload of the page when the user clicks the back
button
>
> Really? That's cool then, this will basically "disable" the back
button :) I'll try it out.
It doesn’t disable the back button. The browser just don’t use internal browser cache when
the URL is visited either by refresh button or back button.
>
>
>> 2) Can we add a back link to some steps in the flow?
>> 3) Can we add a cancel link to some steps in the flow?
>
> You can reset the flow to the beginning, but can't go back one step.
From UX perspective back button on webpage needs to behave exactly same as back button in
browser.
Cancel is very confusing for me. For example on “Forgot password” is cancel button - what
is purpose of it? what happen when I click on it? Where I would be redirected? I
personally removed those cancel buttons from our theme because it’s not clear why they’re
there.