{"action":"closed","issue":{"url":"https://api.github.com/repos/zxing/zxing/issues/302","labels_url":"https://api.github.com/repos/zxing/zxing/issues/302/labels{/name}","comments_url":"https://api.github.com/repos/zxing/zxing/issues/302/comments","events_url":"https://api.github.com/repos/zxing/zxing/issues/302/events","html_url":"https://github.com/zxing/zxing/issues/302","id":56019728,"number":302,"title":"Scan via browser URL seems to cache redirect and return to wrong location","user":{"login":"tjwood100","id":10771648,"avatar_url":"https://avatars.githubusercontent.com/u/10771648?v=3","gravatar_id":"","url":"https://api.github.com/users/tjwood100","html_url":"https://github.com/tjwood100","followers_url":"https://api.github.com/users/tjwood100/followers","following_url":"https://api.github.com/users/tjwood100/following{/other_user}","gists_url":"https://api.github.com/users/tjwood100/gists{/gist_id}","starred_url":"https://api.github.com/users/tjwood100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjwood100/subscriptions","organizations_url":"https://api.github.com/users/tjwood100/orgs","repos_url":"https://api.github.com/users/tjwood100/repos","events_url":"https://api.github.com/users/tjwood100/events{/privacy}","received_events_url":"https://api.github.com/users/tjwood100/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-30T10:54:21Z","updated_at":"2015-01-31T21:52:50Z","closed_at":"2015-01-31T21:52:50Z","body":"I have developed a simple web app we use for tracking boxes at work which updates a database.\r\n\r\nThe boxes all have barcodes attached.\r\n\r\nThis is somewhat simplified, but for the purposes of this bug report I have two pages in the web app:\r\n\r\n- Look up a box\r\n- Add a new box\r\n\r\nOn the \"add a new box\" page I have a button which links to Barcode Scanner with a URL like:\r\nhttp://zxing.appspot.com/scan?ret=https%3A%2F%2Fmyserver.example.com%2Faddbox.php%3F%26xid%3D%7BCODE%7D\r\n\r\nOn the \"look up a box\" page I have a similar button but it links to a different URL:\r\nhttp://zxing.appspot.com/scan?ret=https%3A%2F%2Fmyserver.example.com%2Flookupbox.php%3F%26xid%3D%7BCODE%7D\r\n\r\nHowever, I find if I go to \"add a new box\", scan a barcode with a particular value (doesn't seem to matter what type of barcode, I've reproduced with code 128 and with QR code), I am redirected correctly. But if I later go to \"look up a box\" and scan the same barcode, it returns me to addbox.php not lookupbox.php even though the link on the \"look up a box\" page was definitely correct.\r\n\r\nIf I scan a different barcode on the \"look up a box\" page I'm correctly redirected to lookupbox.php. If I clear all zxing's app data, and go to the \"look up a box\" page, and scan the same barcode, I'm also correctly redirected to lookupbox.php.\r\n\r\nIt looks like zxing is somehow caching the ret= value along with a particular barcode and refusing to change it on a later scan of the same code.\r\n\r\nThis breaks my web app's functionality. I guess the only way I can really work around it is by redirecting all scans to the same scan.php page and then using PHP session variables or something to tell scan.php where I really want to be redirected to. This is, quite obviously, a pain.\r\n\r\nI'm using Barcode Scanner version 4.7.0 on a Sony Xperia Z2 running Android 4.4.4."}}