nice URL deeplink
- Dominant language
- HTML
- Stars
- 435
- Forks
- 168
- PR merge metrics
- No merged PRs in 30d
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
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue points to jplist.filter-toggle-bundle.min.js and the getDeepLink method. Start by examining the unminified source to understand how deep linking parameters are constructed and parsed. Look for where pathGroup is used to restore state on page refresh. Modify the method to output a cleaner URL while ensuring the state can still be restored correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, jquery
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100