1rosehip / 1rosehip/jplist

nice URL deeplink

Ouverte
#316 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
HTML
Étoiles
435
Forks
168
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Hi Rosehip,

I would ask you to help me in my problem below. I use your jplist code and I would like instead of

- http://www.something.com/index.php?value=colors#red:pathGroup=1|blue:pathGroup=1|yellow:pathGroup=1 ..., etc

the following url

- http://www.something.com/colors#red-blue-yellow

The "index.php?value=colors" is solved with .htaccess URL Rewrite, and "-" is also solved (change delimiter value in main js) but I cannot change the jplist filter parameters as a nice deeplink.

I have found the following part of the code in the "jplist.filter-toggle-bundle.min.js" file:
b.prototype.getDeepLink = function() {
...
a = this.name + this.options.delimiter0 + "pathGroup=" + d
}
return a;

Well if I provide only the value "a=this.name", it results the correct url for me but not the code because in this case refreshing the page, the previous checked state is not checked anymore so I think the parameter handover is somewhere not correct.

Could you help me where the code waits for the "a" variable with the full value (this.name + this.options.delimiter0 + "pathGroup=" + d), and what modification should be carried out?

I hope it is only a little change in your code.

Thanks your reply and help so very much,

BR,
Atti

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Le problème pointe vers jplist.filter-toggle-bundle.min.js et la méthode getDeepLink. Commencez par examiner le code source non minifié pour comprendre comment les paramètres de deep linking sont construits et analysés. Cherchez où pathGroup est utilisé pour restaurer l'état lors du rafraîchissement de la page. Modifiez la méthode pour qu'elle produise une URL plus propre tout en garantissant que l'état puisse toujours être restauré correctement.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
javascript, jquery
Domaine
frontend, web-dev
Type d'issue
Fonctionnalité
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.