survey URL ?lang=...

Mehr
3 Monate 1 Woche her #180211 von 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

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

LimeSurvey Partners
Mehr
3 Monate 1 Woche her #180212 von 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
Folgende Benutzer bedankten sich: LouisGac

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
3 Monate 1 Woche her #180218 von KompetenzZ
COM_KUNENA_MESSAGE_REPLIED_NEW
Thank you :)

Cheers kompetenzz

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Monate 3 Wochen her #181122 von 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.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Monate 3 Wochen her #181123 von DenisChenu
COM_KUNENA_MESSAGE_REPLIED_NEW

markusd1984 schrieb: 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 .
An error happen ? Before make a new topic : remind the Debug mode .
Folgende Benutzer bedankten sich: LouisGac

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Monate 3 Wochen her #181128 von 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 :).

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Monate 3 Wochen her #181134 von 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 .
An error happen ? Before make a new topic : remind the Debug mode .

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Monate 3 Wochen her - 2 Monate 3 Wochen her #181143 von 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: 2 Monate 3 Wochen her by markusd1984.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Monate 3 Wochen her #181144 von 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)

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha