Skip to content

Commit e758595

Browse files
committed
testing more robust redirect system
1 parent 7ca6134 commit e758595

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-wordpress",
3-
"version": "2.0.2",
3+
"version": "2.0.3",
44
"description": "A collection of Vue components and mixins for use with WordPress and the WP-REST API",
55
"author": "WakeCoder <ajqajq@gmail.com>",
66
"contributes": {

src/mixins/wp-mixin.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ export default {
5454
pagesLeft: true // This should be updated based on the X-WP-TotalPages header and pagesLoaded
5555
}
5656
loader.loadPage()
57+
if (loader.pagesLoaded === undefined) {
58+
errorCallback()
59+
}
5760
return loader
5861
},
5962

0 commit comments

Comments
 (0)