Proper fallback from referer to REQUEST_URI
authorSimo Sorce <simo@redhat.com>
Thu, 12 Mar 2015 17:51:04 +0000 (13:51 -0400)
committerSimo Sorce <simo@redhat.com>
Thu, 12 Mar 2015 18:48:11 +0000 (14:48 -0400)
commit078942b2cf6d73697f4c6b8a28cabe940f358532
tree66dcb178eb814e41800abb60d28593bb02dc28dc
parenta1bcbfd426a6c3860edf53e12da32ff6daad4442
Proper fallback from referer to REQUEST_URI

If the referer is present but does not contain a transaction ID we still
need to fallback to the REQUEST_URI. Fix the code to check the url and
then fallback to REQUEST_URI rathe than decide upfront merely on the
fact a referer is available.

https://fedorahosted.org/ipsilon/ticket/74

Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Nathan Kinder <nkinder@redhat.com>
ipsilon/util/page.py