Archive.org: can't stay on About tab, keeps redirecting to Collection tab

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
User avatar
Stargate38
Moonbather
Moonbather
Posts: 59
Joined: 2018-05-27, 22:55
Location: Earth

Archive.org: can't stay on About tab, keeps redirecting to Collection tab

Unread post by Stargate38 » 2022-07-25, 20:58

Please always mention the name/domain of the website in question in your topic title.

Please try and include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:

1) Clear any current output
2) Navigate or refresh the page in question
3) Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.

Code: Select all

**PASTE CONSOLE OUTPUT HERE**
Timestamp: 7/25/2022 5:01:01 PM
Error: ReferenceError: event is not defined
Source File: https://archive.org/includes/build/js/tiles.min.js?v=af39621e
Line: 2
PM Version 31.1.1 (32-bit)

Examples:
https://archive.org/details/attentionkm ... ?tab=about
https://archive.org/details/apkarchive?tab=about

Expected result: PM stays on About tab.
Observed result: page redirects to Collection tab almost immediately.

Why is it redirecting like that? Some bug on their side, or a PM issue?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35478
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Archive.org: can't stay on About tab, keeps redirecting to Collection tab

Unread post by Moonchild » 2022-07-25, 21:04

Code: Select all

23:00:39.689 ReferenceError: event is not defined 1 tiles.min.js:2:611446
	value https://archive.org/includes/build/js/tiles.min.js:2:611446
	onclick https://archive.org/details/apkarchive:1:1
it's a bug on their side. They are using the ambiguous and (mainstream-)deprecated global event (we never implemented this MSIE quirk ourselves) in their handler for the about "tab". You'll see this if you for example click on it after it's loaded the collection tab. I'm assuming the redirect occurs because their scripting doesn't know how to handle an error thrown, resulting in a different 'tab" getting activated as a result.
Pleae contact them and let them know this occurs and that it is due to using the global "window.event" - they should be using the event as passed into the event handler, instead.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Locked