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.
- Host: GitHub
- URL: https://github.com/brettz9/anchors-away
- Owner: brettz9
- License: mit
- Created: 2015-10-06T14:16:23.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2021-12-13T08:35:43.000Z (almost 4 years ago)
- Last Synced: 2025-02-18T11:58:29.853Z (8 months ago)
- Topics: anchor, html-page, redirects
- Language: HTML
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE-MIT.txt
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.