An open API service indexing awesome lists of open source software.

https://github.com/brettz9/anchors-away

Simple file to redirect an HTML page to another page including the anchors.
https://github.com/brettz9/anchors-away

anchor html-page redirects

Last synced: 8 months ago
JSON representation

Simple file to redirect an HTML page to another page including the anchors.

Awesome Lists containing this project

README

          

# anchors-away

Simple file to redirect an HTML page to another page including the anchors.

Since anchors are not sent to the server in regular web requests such that
they can be detected and including in redirects, this HTML file includes
some JavaScript which can do the job.

# Usage

1. Clone this repository. (This is also available via `npm i anchors-away`, but
as you'll wish to customize the URL, this approach is not very useful and
only meant at the moment for discoverability.)
2. In `index.html`, alter the `` value to point to your desired webpage.
3. Optionally customize the rest of the page.

# To-dos

1. Refactor as a module for importing into one's own HTML.