Paging issue after selecting a tag to filter blog posts
I'm currently running into an issue with the pager not working correctly after someone has clicked on a Tag to filter the blog posts.
If you click on a tag you get this url:
http://blogs.buffiniandcompany.com/brians-blog/-in-Tags/Tags/brian-buffini
but when you move down to the bottom of the page and click on page 2 for the Pager the URL is: http://blogs.buffiniandcompany.com/brians-blog/page/2/
which just takes you to page 2 of the entire blog list. The URL should be
http://blogs.buffiniandcompany.com/brians-blog/-in-Tags/Tags/brian-buffini/page/2/
any thoughts on what is wrong with my configuration?
I ran across an earlier post that talked about setting the UrlEvaluationMode to QueryString from UrlPath which works, but then makes the URLs of my posts look like this (in the blog post widget): http://blogs.buffiniandcompany.com/brians-blog/brians-blog/2012/01/20/3-things-you-can-do-today-to-increase-productivity, which I'd prefer not to have, I guess I just don't like seeing the '/brians-blog/' in there twice.
Of course changing the UrlEvaluationMode back to UrlPath has unfortunately left me with the double '/brians-blog/' in all of my blog list widget URLs, but with the pager back to not working.
Is it possible to have the UrlEvaluationMode set to 'UrlPath', get the pager to work, and get my blog post URLs to only have one '/brians-blog/' path in them?
Thanks.
Hello,
That's tough one, we have implemented the UrlEvaluationMode Querystring to accomodate especially for this scenario where you are filtering items by taxonomy and want to use paging. As of now there is no other way to achieve this but use querystrings, however we're leading an internal discussion on a possible change in that implementation. Please stay in touch and we'll let you know as soon as there's further development on the matter.
Regards,
Boyan Barnev
the Telerik team
That's fine I can use the querystring method, it just sucks that both the page name & blog name have to be in the URL. Currently I have them the same name, but I can change the page name to something else I suppose.
Dear Boyan
Any news on this, since it's still the same 2 years later in 7.0.5115.
Well I guess setting teh UrlEvaluationMode to Querystring in advanced works ok.
Markus
Hello Markus,
Currently, the paging still works with the UrlEvaluationMode setting, configured to QueryString. This is because, by default, the paging does not set and persist any filtering data in the default mode and just makes a request with the pageIndex. When in QueryString mode further parameters are set in the query, so the widget could be correctly resolved and the full query could be build.
Regards,
Nikola Zagorchev
Telerik
The problem with this approach is that we end up with non friendly seo urls. Is there another solution?
Hi,
Can we keep the Urlpath parameter, and have the pagination working after filtering? has this been fixed?
Thanks