poosh-plugin-header-location-from-html

Poosh plugin that generates location HTTP headers from HTML content

Usage no npm install needed!

<script type="module">
  import pooshPluginHeaderLocationFromHtml from 'https://cdn.skypack.dev/poosh-plugin-header-location-from-html';
</script>

README

poosh-plugin-header-location-from-html

Poosh plugin that generates location HTTP headers from HTML content

Sample

If your local looks like that:

<!DOCTYPE html>
<html>
  <head>
    <link rel="canonical" href="http://mysite.tld/posts/my-original-url"/>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <meta http-equiv="refresh" content="0;url=http://mysite.tld/posts/my-original-url"/>
  </head>
</html>

Then the plugin will automatically generates a location HTTP header for it.

Dependencies