Projet

Général

Profil

Bug #88053

thumbnails lors du dépot d'un fichier : utiliser l'URL canonique du formulaire (supprimer l'éventuelle querystring)

Ajouté par Thomas Noël il y a environ 2 mois. Mis à jour il y a environ 2 mois.

Statut:
Solution déployée
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
12 mars 2024
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

Description

On peut se retrouver avec un formulaire appelé avec cette forme d'URL : https://ville.fr/slug/?parametre=chose

Si la page présente un champ fichier, alors on chercher à afficher le thumbnail lors du dépot, mais l'URL se retrouver être https://ville.fr/slug/?parametre=chosetempfile?... au lieu de https://ville.fr/slug/tempfile?...

Révisions associées

Révision 96bfaea4 (diff)
Ajouté par Benjamin Dauvergne il y a environ 2 mois

misc: use only pathname to build image live preview URL (#88053)

Change introduced by #33301 used the full URL which may also contain a
query string or a fragment identifier making the resulting URL invalid.

Historique

#2

Mis à jour par Thomas Noël il y a environ 2 mois

Mon analyse : ça viendrait de #33301 et de

file_button[0].style.setProperty('--image-preview-url', `url(${window.location.href}tempfile?t=${img_token}&thumbnail=1)`);

qui est trop optimiste, la href peut contenir une query string (ou autre choses, je ne sais). Il y a peut-être un window.location.truc qui renvoie le path simple. Ou peut être tenter un url(./tempfile?...) ?

#3

Mis à jour par Benjamin Dauvergne il y a environ 2 mois

  • Assigné à mis à Benjamin Dauvergne
#4

Mis à jour par Robot Gitea il y a environ 2 mois

  • Statut changé de Nouveau à Solution proposée

Benjamin Dauvergne (bdauvergne) a ouvert une pull request sur Gitea concernant cette demande :

#5

Mis à jour par Robot Gitea il y a environ 2 mois

  • Statut changé de Solution proposée à Solution validée

Thomas NOËL (tnoel) a approuvé une pull request sur Gitea concernant cette demande :

#6

Mis à jour par Robot Gitea il y a environ 2 mois

  • Statut changé de Solution validée à Résolu (à déployer)

Benjamin Dauvergne (bdauvergne) a mergé une pull request sur Gitea concernant cette demande :

#7

Mis à jour par Transition automatique il y a environ 2 mois

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF