Quantcast
Channel: NBStore Discussions Rss Feed
Viewing all articles
Browse latest Browse all 4081

New Post: Backoffice Pagination "Not Found" error

$
0
0
I also have the same problem but it felt like it was possible to correct it with jQuery. So I gave it an hour or two and have now come up with a solution. I have created a JavaScript that corrects the incorrect links so that navigation is working normally. It is a temporary solution, but it works.

To do this:
  1. Open the skin file for Dark for Stor Back Office
    (\DesktopModules\NB_Store\Skins\Dark\Dark.ascx
  2. Copy this JavaScript at the bottom of the file
<script type="text/javascript">
    $(function () {
        //Function to correct the incorrect links
        if ($("#dnn_ContentPane .PagingTable").length) {
            var PageNumber = $("#dnn_ContentPane .PagingTable");
            var OldURL = "";
            var SplitURL = new Array();

            PageNumber.find("a").each(function (index) {//Loop for each link
                OldURL = $(this).attr('href'); //Old URL
                SplitURL = OldURL.split("SkinSrc="); //Split URL
                var regex = new RegExp('/', 'g'); //Characters to be replaced, g = all
                SplitURL[1] = SplitURL[1].replace(regex, "%2f"); //Replace error encoded characters %2f
                $(this).attr('href', SplitURL[0] +"SkinSrc="+ SplitURL[1]); //Replace the incorrect URL in the link 
            });  
        }
    });
</script>
  1. Save the file Dark.ascx
Now, it is possible to navigate between pages! :)

Viewing all articles
Browse latest Browse all 4081

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>