Lookyloo / lookyloo

Lookyloo is a web interface that allows users to capture a website page and then display a tree of domains that call each other.
https://www.lookyloo.eu
Other
663 stars 83 forks source link

[Bug]: URI Fragment discarded on capture #700

Closed Rafiot closed 1 year ago

Rafiot commented 1 year ago

What happened?

A URL fragment (#) is ignored when passed to playwright. It is unclear where the part is discarded, but it is a problem for some captures so we need to figure that out.

If the issue is related to the web interface, what browsers are you seeing the problem on?

No response

Relevant log output

No response

Rafiot commented 1 year ago

I investigated that one and it makes sense: the URL fragment is handled by the browser itself, so it needs to be part of the instrumentation (it is a scroll to an ID).

I have a working branch that does that, but it is important to keep in mind that the screenshot of the page may not clearly show the difference: we're taking a screenshot of the complete page, not just what is viewed on the browser.

Rafiot commented 1 year ago

Fix: https://github.com/Lookyloo/PlaywrightCapture/commit/b5771d61cfd927ed546ca6550dbeb824a624dbe2