1rosehip / 1rosehip/jplist

nice URL deeplink

未关闭
#316 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
HTML
星标
435
派生
168
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。