Skip to content

Commit 4149ede

Browse files
Merge pull request #349 from rdkcentral/fix/updateHash
Fix/update hash
2 parents 1067b2d + 0ad2991 commit 4149ede

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Router/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,9 @@ export const navigate = (url, args = {}, store) => {
180180
// push request in the queue
181181
queue(url, args, store)
182182

183-
setHash(url)
184-
if (!mustUpdateLocationHash()) {
183+
if (mustUpdateLocationHash()) {
184+
setHash(url)
185+
} else {
185186
forcedHash = url
186187
handleHashChange(url)
187188
.then(() => {

0 commit comments

Comments
 (0)