Skip to content

Commit df7b508

Browse files
committed
fixup: update history management to trim query from URL and rename comic source class
1 parent c23a1df commit df7b508

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Redux/Reducers/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,10 @@ const Reducers = createSlice({
142142
},
143143
pushHistory: (state, action) => {
144144
// state.history.push(action.payload);
145-
state.history[action.payload.link] = action.payload;
145+
//trim the query from the url
146+
const link = action.payload.link.split('?')[0];
147+
148+
state.history[link] = action.payload;
146149
},
147150
UpdateSearch: (state, action) => {
148151
//push data to search array on top

src/Screens/Comic/APIs/constance.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export const ComicDetailPageClasses = {
133133
};
134134

135135
export const ComicBookPageClasses = {
136-
readallcomics: {
136+
readcomicsonline: {
137137
imageContainer: '.imagecnt',
138138
imageSelector: 'img.img-responsive[data-src]',
139139
imageAttr: 'data-src',

0 commit comments

Comments
 (0)