Skip to content

Commit 9c21d3b

Browse files
committed
chore: release 0.1.6
1 parent 638f011 commit 9c21d3b

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

docs/faq.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ Client-side redirects with meta refresh are okay for search engines, even the mo
1111
I know better how to write HTML redirect file
1212
*********************************************
1313

14-
By default, created HTML redirect files contains ``<html><head><noscript><meta http-equiv="refresh" content="0; url=${to_uri}" /></noscript><script>var target = "${to_uri}";if (window.location.hash) {window.location.replace(target + window.location.hash);} else {window.location.replace(target);}</script></head></html>``. A little bit of JavaScript is used to handle hash part of the URI (the ``#foo`` in ``https://example.com/docs#foo``).
14+
By default, created HTML redirect files contains
15+
16+
::
17+
18+
<html><head><noscript><meta http-equiv="refresh" content="0; url=${to_uri}" /></noscript><script>var target = "${to_uri}";if (window.location.hash) {window.location.replace(target + window.location.hash);} else {window.location.replace(target);}</script></head></html>
19+
20+
A little bit of JavaScript is used to handle hash part of the URI (the ``#foo`` in ``https://example.com/docs#foo``).
1521

1622
If you want to change this behavior, you can create your own HTML template. Just set ``redirect_html_template`` option in your ``conf.py`` to point to your template file. The template file should be located in the source directory (the directory containing ``conf.py``). For example::
1723

docs/rn.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Release notes
22
#############
33

4+
0.1.6 (2025-03-18)
5+
******************
6+
7+
- feature: preserve URL fragments in redirects (the ``#foo`` in ``https://example.com/docs#foo``) (`issue #11 <https://github.com/documatt/sphinx-reredirects/issues/11>`_ by `David Ekete <https://github.com/davidekete>`_).
8+
- chore: force lint, format, and test with pre-commit hooks
9+
410
0.1.5 (2024-07-12)
511
******************
612

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name="sphinx_reredirects",
5-
version="0.1.5",
5+
version="0.1.6",
66
url="https://documatt.com/sphinx-reredirects/",
77
license="BSD3",
88
author="Documatt.com",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy