Broken urls for tags that include double spaces

Aperta
#1 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
php
Ambito
web-dev

Direzione di ricerca

Start by locating the code that creates tag directories and the views that generate tag links. Compare how both paths normalize tags containing double spaces, then verify that exported links resolve to the generated directory name for a tag such as Walsh Edmund A.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Omeka seems to allow for tags to include double spaces, though they render as a single space. For example, some imported items I used in my local installation have tags like Walsh Edmund A that render like Walsh Edmund A. In Omeka, the query looks like tags=Walsh++Edmund+A. In the export from this plugin, the directory generated has the name walsh--edmund-a, but all tag links look for walsh-edmund-a.

I feel like the core shouldn't allow for those double spaces, especially if it renders as a single space as it's pretty confusing. In the meantime, if the plugin picks up on those double spaces while creating directories, it should probably use the same logic for generating tag urls in the views.

Lingua principale
PHP
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di omeka/plugin-StaticSiteExport

Tutte le issue di omeka/plugin-StaticSiteExport

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.