developer.jelix.org is not used any more and exists only for
history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
Opened 11 years ago
Closed 11 years ago
#1140 closed bug (worksforme)
url significant et param supplémentaire
Reported by: | hadrien | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | Jelix 1.2RC1 |
Component: | jelix:plugins:urls | Version: | 1.2b1 |
Severity: | minor | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Documentation needed: | no | |
Hosting Provider: | Php version: |
Description
Prenons un cas avec url basic :
{jurl 'module~ctrl:act', array('p1' => 1, 'p2' => null)}
donne :
/index.php?module=module&action=ctrl:act&p1=1
Activons maintenant l'url significant avec la définition suivante :
<url pathinfo="/kikoo/:p1" module="module" action="ctrl:act"> <param name="p1" regexp="\d+" /> </url>
Résultat : /kikoo/1?p2=
Le paramètre à null apparait dans les urls significantes alors qu'il ne devrait, comme dans les urls basiques :(
Change History (2)
comment:1 Changed 11 years ago by laurentj
- Component changed from jelix to jelix:plugins:urls
- Priority changed from normal to low
- Severity changed from normal to minor
comment:2 Changed 11 years ago by laurentj
- Resolution set to worksforme
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
Je n'arrive pas à reproduire le bug. voici les tests ajoutés http://bitbucket.org/jelix/jelix-trunk/changeset/e2b58cb0397e
La construction de la partie query des urls ne dépends pas des moteurs d'urls, mais est réalisé dans tout les cas par la fonction php http_build_query.
je ne sais donc pas d'où peux venir cette différence chez toi.