You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build a custom filter for our dynamic (and multilingual) URLs. For the moment I'm just playing around to see what can I do and then design them all.
Now, one of our URLs is '/courses/search_results?course_type=5'
course_type 5 corresponds to 'Course'. I'm trying to convert the above URL to something like '/courses/search_results/Course' but I cannot make it work. This is what I've tried:
Hi there.
I'm trying to build a custom filter for our dynamic (and multilingual) URLs. For the moment I'm just playing around to see what can I do and then design them all.
Now, one of our URLs is '/courses/search_results?course_type=5'
course_type 5 corresponds to 'Course'. I'm trying to convert the above URL to something like '/courses/search_results/Course' but I cannot make it work. This is what I've tried:
I tried to debug from
extract_segment!
definition:This is how pattern and path (after calling
sub!
) look like:pattern: //courses/search_results/(Course)/
path: "/courses/search_results/"
As I understand, that URL (
"/courses/search_results/"
) should be recognized, but instead I got this error:Thanks!
The text was updated successfully, but these errors were encountered: