src/main/webapp/WEB-INF/jsp/site.jsp

changeset 195
9c7aff3cbb14
parent 184
e8eecee6aadf
child 197
0a2ad22ac656
--- a/src/main/webapp/WEB-INF/jsp/site.jsp	Thu May 13 10:23:37 2021 +0200
+++ b/src/main/webapp/WEB-INF/jsp/site.jsp	Thu May 13 11:28:50 2021 +0200
@@ -48,12 +48,8 @@
 <%-- Define an alias for the additional stylesheet --%>
 <c:set scope="page" var="extraCss" value="${requestScope[Constants.REQ_ATTR_STYLESHEET]}"/>
 
-<%-- Apply the session locale (should always be present, but check nevertheless) --%>
-<c:if test="${not empty sessionScope[Constants.SESSION_ATTR_LANGUAGE]}">
-    <fmt:setLocale scope="request" value="${sessionScope[Constants.SESSION_ATTR_LANGUAGE]}"/>
-</c:if>
-
 <%-- Load resource bundle --%>
+<fmt:setLocale scope="request" value="${pageContext.response.locale}"/>
 <fmt:setBundle scope="request" basename="localization.strings"/>
 
 <!DOCTYPE html>
@@ -66,6 +62,8 @@
         <meta http-equiv="refresh" content="0; URL=${redirectLocation}">
     </c:if>
     <link rel="stylesheet" href="lightpit.css" type="text/css">
+    <link rel="alternate" type="application/rss+xml"
+          title="RSS" href="${baseHref}feed/issues.rss" />
     <c:if test="${not empty extraCss}">
         <c:forEach items="${extraCss}" var="cssFile">
         <link rel="stylesheet" href="${cssFile}" type="text/css">

mercurial