Obsidian-Surfing icon indicating copy to clipboard operation
Obsidian-Surfing copied to clipboard

[Bug]: Some webpages double navigation, difficult to go back

Open profucius opened this issue 1 year ago • 0 comments

Bug Description

Visiting some websites will double their navigation in the tab history. This manifests as an inability to click the Back button once and go back to the previous page. Instead, it will flicker the page as if it is reloading the current page. When this happens, to actually go back, you have to click and hold the Back button and select two entries ago, which takes you back to the actual previous page.

I postulate that this happens because some webpages instantly redirect when you load the page. However the page itself is exactly the same as the existing one. Also this problem does not manifest in Firefox or Chrome browsers. This is why I assume this is a bug in the Surfing plugin.

A proposal for solution: When clicking the Back button on a Surfing webpage, if the previous URL was the same as the current one, then skip it and go to the next previous one, until an actual different URL is detected. This could effectively workaround the issue, and prevent needing to go through the tedious steps of holding the Back button every time this happens.

Known webpages that have this issue:

  • Google.com
  • Notion.so

Known webpages that do not have this issue:

  • Yahoo.com
  • Quora.com

Relevant Screenshot

example

To Reproduce

  1. Go to Google.com in a Surfing tab within Obsidian.
  2. Search any term, it does not matter what you search.
  3. Click the Back button on the navigation bar in Obsidian.
  4. Notice that it flickers like it attempts to go back, but instead stays on the current page.
  5. Click and Hold the Back button, and notice that the entries for each action are doubled.
  6. Clicking on the history item two prior will bring you back to the original Google.com page (prior to searching).

Obsidian Version

1.3.7

web-browser-only

  • [X] Did you install only one web browser plugin?

Checklist

  • [X] I updated to the latest version of the plugin.

profucius avatar Jul 13 '23 16:07 profucius