Work with laravel
hugofabricio opened this issue · 7 comments
hugofabricio commented
How to work with laravel, i define script but not work.
falsandtru commented
Can you show me the repro or error messages?
hugofabricio commented
no error message displays took a console.log and it returns the object normally.
hugofabricio commented
Its possible check in url: http://rpnonline.com.br
falsandtru commented
Thanks. The cause is default url validation. The current definition is
public filter(el: HTMLAnchorElement): boolean {
if (typeof el.href !== 'string') return false;
const dest = new Url(el.href);
return /^https?:$/.test(dest.protocol)
&& /^$|\.(html?|php)$/.test(dest.file);
}
This validation rejects /dir
pattern urls. So I'll fix it to allow its pattern.
hugofabricio commented
Thanks man :D
falsandtru commented
Now I unable to release the patched version because travis is broken. You can instantly fix this bug by setting the filter function instead of update.
new Pjax({
filter: () => true
});
falsandtru commented
Fixed, and released now.