View Issue Details

This bug affects 2 person(s).
 14
IDProjectCategoryView StatusLast Update
20141Bug reportsAccessibilitypublic2025-08-07 14:40
Reportertassoman Assigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version6.6.x 
Summary20141: WCAG 2.2 failed pass Criterion 2.4.2 - Page titled
Description

This is a level A criterion for WCAG 2.2. So makes it a mayor accessibility error.
Every survey page, but also every administration back-office page, has the same page title. Page titles should be descriptive for better accessibility.

https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-title.html

Steps To Reproduce

Steps to reproduce

Scenario 1 - survey participant

  1. create a paged survey
  2. configure various questions inside various groups of questions
  3. see the survey preview.
  4. see every survey page has the same title (title is the browser's tab name or browser's window title)

Scenario 2 - administration page

  1. Browse any administrative page.
  2. see: Every page have "Limsurvey Server Title" as <title>.

Expected result

Scenario 1

Every page should have a unique title, for example:

  • MySurvey title - MyLimesurvey Server
  • Registration - MySurvey title - MyLimesurvey Server
  • Welcome to MySurvey title - MyLimesurvey Server
  • First group title - MySurvey title - MyLimesurvey Server
  • Second group title - MySurvey title - MyLimesurvey Server
  • Third group title - MySurvey title - MyLimesurvey Server
  • Conclusion - MySurvey title - MyLimeSurvey Server

Scenario 2

Every page should have right <title> tag, for example:

  • Administration Dashboard - MyLimesurvey Server
  • Global Settings - Mylimesurvey Server
  • Themes - MyLimesurvey Server
  • Manage administrators - MyLimesurvey Server
  • Plugins - MyLimesurvey Server
  • Label sets - MyLimesurvey Server

Page titles should be translated in each language. <title> tag should be composed by H1 titlename and ServerName variables.

Tagsa11y, accessibility, admin, SuperAdministrator, survey
Attached Files
immagine.png (13,280 bytes)   
immagine.png (13,280 bytes)   
Bug heat14
Complete LimeSurvey version number (& build)6.10.0
I will donate to the project if issue is resolvedNo
Browserany
Database type & versionany
Server OS (if known)any
Webserver software & version (if known)any
PHP Version8.2

Users monitoring this issue

DenisChenu, tassoman

Activities

DenisChenu

DenisChenu

2025-06-18 12:15

developer   ~82900

Yep, we really need more information to make better title !

Else : need error information too (see skelvanilla solution)

Including error notification information in the page title (future link)

https://www.w3.org/WAI/WCAG22/Techniques/general/G83.html

tassoman

tassoman

2025-06-18 12:27

reporter   ~82903

in my situation, {{ pagetitle }} is empty string inside (upload/themes/survey/mytheme/views/subviews/header/head.twig)

I also wrote this following code, but aGroup is not available variable inside that Twig template

{% if(aGroup.name) %}{{ processString(aGroup.name,1)}} - {% endif %}
DenisChenu

DenisChenu

2025-06-18 12:36

developer   ~82904

I use pagetitle only if it's not empty

I also wrote this following code, but aGroup is not available variable inside that Twig template

Yes, it's the point : I think we need , in surveying or elswhere ; sometthing like aSurveyInfo.currentStep

Current group information

  • (whole if All in one page
  • empty for register, token etc …
  • For save : maybe add current group, unsure

Current questions information

  • Whole from group if survey is group by group
  • current for question by question

Current step (with translation) : You can have it via {{ aSurveyInfo.include_content }} https://github.com/LimeSurvey/LimeSurvey/blob/0175cefbb6f797fa6e17cb559c152ecf06e59276/themes/survey/vanilla/views/layout_global.twig#L114

tassoman

tassoman

2025-07-25 10:25

reporter   ~83143

While answering questions, include_content is undefined.
Your answer was good for other actions happening in the survey (welcome, save, submit etc...) but I still have no option to change the title while answering.
For example, "Page 1 of 6" would be enough good, if we had groups count and group progress. But the best, would be as I said before.
Maybe also progress value can be an indicator for example "My title for this survey, progress 24% - My Site Name". But is unavailable.

I share the ugly code I wrote until now:

[code]
<title>
{% if aSurveyInfo.registration_view is defined and 1 == 2 %}
{% if 'register_form' == aSurveyInfo.registration_view %}Iscrizione: {% endif %}
{% if 'update_form' == aSurveyInfo.registration_view %}Aggiornamento dati: {% endif %}
{% endif %}
{% if aSurveyInfo.include_content is defined %}
{% if('firstpage' == aSurveyInfo.include_content) %}
{% if 2 == aSurveyInfo.showsurveypolicynotice %}Informativa: {% endif %}
{% endif %}
{% if('submit' == aSurveyInfo.include_content) %}{{ gT('Thank you') }}: {% endif %}
{% if('register' == aSurveyInfo.include_content) %}{{ gT('Registration') }}: {% endif %}
{% if('save' == aSurveyInfo.include_content) %}{{ gT('Save and close') }}: {% endif %}
{% endif %}
{% if aSurveyInfo.surveyls_title is defined %}
{{ processString(aSurveyInfo.surveyls_title,1) }} -
{% endif %}
Questionari e Sondaggi, My Organization Name
</title>
[/code]

tassoman

tassoman

2025-07-25 13:08

reporter   ~83144

Is there any workaround for Titles in "Scenario 2", the adminstrative backend? Considering a custom "admintheme", do I have option to overwrite templates without altering core?

Issue History

Date Modified Username Field Change
2025-06-18 11:58 tassoman New Issue
2025-06-18 11:58 tassoman File Added: immagine.png
2025-06-18 11:59 tassoman Tag Attached: a11y
2025-06-18 11:59 tassoman Tag Attached: accessibility
2025-06-18 11:59 tassoman Tag Attached: survey
2025-06-18 11:59 tassoman Tag Attached: admin
2025-06-18 11:59 tassoman Tag Attached: SuperAdministrator
2025-06-18 12:10 DenisChenu Issue Monitored: DenisChenu
2025-06-18 12:10 DenisChenu Bug heat 0 => 8
2025-06-18 12:15 DenisChenu Note Added: 82900
2025-06-18 12:15 DenisChenu Bug heat 8 => 10
2025-06-18 12:27 tassoman Note Added: 82903
2025-06-18 12:27 tassoman Bug heat 10 => 12
2025-06-18 12:36 DenisChenu Note Added: 82904
2025-07-25 10:25 tassoman Note Added: 83143
2025-07-25 13:08 tassoman Note Added: 83144
2025-07-26 15:50 malya8 Bug heat 12 => 14
2025-07-26 15:51 malya8 File Deleted: tải xuống (8).jpg
2025-07-27 11:50 DenisChenu Bug heat 14 => 12
2025-08-07 14:40 tassoman Issue Monitored: tassoman
2025-08-07 14:40 tassoman Bug heat 12 => 14