@mjhls/mjh-framework 1.0.358 → 1.0.359

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- # mjh-framework v. 1.0.358
2
+ # mjh-framework v. 1.0.359
3
3
 
4
4
 
5
5
  > Foundation Framework
@@ -164,8 +164,14 @@ var MasterDeck = function (_React$Component) {
164
164
  if (path[0] !== '/') {
165
165
  path = '/' + path;
166
166
  }
167
-
168
167
  var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
168
+ if (window.location.href.includes('?')) {
169
+ if (window.location.href.includes('?page')) {
170
+ newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
171
+ } else {
172
+ newPath = pageNumber === 1 ? '' + path : path + '&page=' + pageNumber;
173
+ }
174
+ }
169
175
 
170
176
  // please leave this for later debug purpose : Yong Jun.
171
177
  /* console.log('page change reported', {
@@ -158,8 +158,14 @@ var MasterDeck = function (_React$Component) {
158
158
  if (path[0] !== '/') {
159
159
  path = '/' + path;
160
160
  }
161
-
162
161
  var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
162
+ if (window.location.href.includes('?')) {
163
+ if (window.location.href.includes('?page')) {
164
+ newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
165
+ } else {
166
+ newPath = pageNumber === 1 ? '' + path : path + '&page=' + pageNumber;
167
+ }
168
+ }
163
169
 
164
170
  // please leave this for later debug purpose : Yong Jun.
165
171
  /* console.log('page change reported', {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.358",
3
+ "version": "1.0.359",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",