survey URL ?lang=...

Plus d'informations
il y a 2 mois 1 semaine #180211 par KompetenzZ
COM_KUNENA_MESSAGE_CREATED_NEW
Hi community,

I can't find an answer to the following question: I have the URL to my survey, which is only in one language, for exmple let's say:
abc.limequery.com/519354?lang=de

I tested to leave the part "?lang=de" when I provide a link to the survey. Let's say: let's say:
abc.limequery.com/519354

The browser still finds the survey/URL.
Can I leave the part with the "?lang=de"? Because then the URL is a bit shorter, which is a bit advantageous.
Or is it not save when the "?lang=de" is removed? I just don't know why there is this "?lang=de" when my survey is only in one language anyway.

LS Version 3.14

Cheers kompetenzz

Connexion ou Créer un compte pour participer à la conversation.

LimeSurvey Partners
Plus d'informations
il y a 2 mois 1 semaine #180212 par jelo
COM_KUNENA_MESSAGE_REPLIED_NEW
You can use the URL without the lang parameter.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Les utilisateur(s) suivant ont remercié: LouisGac

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 2 mois 1 semaine #180218 par KompetenzZ
COM_KUNENA_MESSAGE_REPLIED_NEW
Thank you :)

Cheers kompetenzz

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 mois 3 semaines #181122 par markusd1984
COM_KUNENA_MESSAGE_REPLIED_NEW
How can we remove this to be included from the url displayed?


Can we do this via the urlManager in application/config/config.php ?


When only one language is used this is unnecessary and removing it would be nice to make it cleaner :)
Thanks for any help you guys can give.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 mois 3 semaines #181123 par DenisChenu
COM_KUNENA_MESSAGE_REPLIED_NEW

markusd1984 écrit: Can we do this via the urlManager in application/config/config.php ?


When only one language is used this is unnecessary and removing it would be nice to make it cleaner :)
Thanks for any help you guys can give.

feature request

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Les utilisateur(s) suivant ont remercié: LouisGac

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 mois 3 semaines #181128 par markusd1984
COM_KUNENA_MESSAGE_REPLIED_NEW
Thanks Denis, I know how to submit a feature request, have done a few in the past,

Just thought given there are rules in the UrlManager, mentioned in one of the pages, I though it might be easily to add it there to remove the language parameter (or edit another file responsible for inserting it) without the need for a feature :).

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 mois 3 semaines #181134 par DenisChenu
COM_KUNENA_MESSAGE_REPLIED_NEW
Maybe, maybe …

Personnaly i use this :
      'rules' => array (
          '<sid:\d+>/*' => array('survey/index','urlSuffix'=>'.html','matchValue'=>false),
          'p/<plugin:\w+>/<function:\w+>'=>array('plugins/direct'),
       ),
I don't see how to remove a param in www.yiiframework.com/doc/api/1.1/CUrlManager

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 mois 3 semaines - il y a 1 mois 3 semaines #181143 par markusd1984
COM_KUNENA_MESSAGE_REPLIED_NEW
I thought it may be possible to build the url structure this way and tried using the language parameter <language:\w+> hence I asked the question.

I tried your rule since I had none but they had no affect at all.
Are yours different with the rule vs standard config?

I turned ShowScriptName off as well and have limesurvery.com/surveys/123456?lang=en


I'm trying to figure out what hands over the ?lang parameter, so we could simply comment it out to be not included.
Do you think it would be outside the CUrlManager.php ?
Last edit: il y a 1 mois 3 semaines by markusd1984.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 mois 3 semaines #181144 par markusd1984
COM_KUNENA_MESSAGE_REPLIED_NEW
Found it in /application/views/admin/survey/surveySummary_view.php

I simply removed
,"lang"=>$oSurvey->language)
from
<div class="col-8">

which now renders the URL without the language parameter B)

Connexion ou Créer un compte pour participer à la conversation.

Commencez dès maintenant !

Créez simplement un compte et commencez à utiliser LimeSurvey dès aujourd'hui.

Inscrivez-vous maintenant

Inscrivez-vous à notre Newsletter!