Skip to content

Commit d3fe652

Browse files
committedMar 26, 2025
Forward / after RSS (rss/) should bounce back to rss
1 parent c048829 commit d3fe652

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎changedetectionio/blueprint/rss/blueprint.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from changedetectionio.safe_jinja import render as jinja_render
33
from changedetectionio.store import ChangeDetectionStore
44
from feedgen.feed import FeedGenerator
5-
from flask import Blueprint, make_response, request, url_for
5+
from flask import Blueprint, make_response, request, url_for, redirect
66
from loguru import logger
77
import datetime
88
import pytz
@@ -36,6 +36,11 @@ def clean_entry_content(content):
3636
def construct_blueprint(datastore: ChangeDetectionStore):
3737
rss_blueprint = Blueprint('rss', __name__)
3838

39+
# Some RSS reader situations ended up with rss/ (forward slash after RSS) due
40+
# to some earlier blueprint rerouting work, it should goto feed.
41+
@rss_blueprint.route("/", methods=['GET'])
42+
def extraslash():
43+
return redirect(url_for('rss.feed'))
3944

4045
# Import the login decorator if needed
4146
# from changedetectionio.auth_decorator import login_optionally_required

0 commit comments

Comments
 (0)
Failed to load comments.