Skip to content

html resources using meta http-equiv to redirect seems to be escaping URL rewriting #490

@joncto

Description

@joncto

Some html resources redirects by using the <meta> http-equiv attribute in the html header (a kind of "soft 301"). Currently, such redirects seems to escape URL rewriting, resulting in redirection to the live web.

A couple of examples encountered have the following pattern within html <head>:

<meta http-equiv="refresh" content="s; URL=<url>">

(where s is the number of seconds the browser will wait before refreshing and navigating to the URL).

To avoid redirection to the live web, the URL value inside the content attribute (after "s;) needs to be rewritten
(should this happen in HtmlParserUrlRewriter.java or somewhere else?)

For reference, MDN's description of the <meta> http-euqiv attribute

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions