Skip to content

[MWPW-195082] Fixed typo for window reload#142

Merged
qiyundai merged 1 commit into
devfrom
MWPW-195082
May 13, 2026
Merged

[MWPW-195082] Fixed typo for window reload#142
qiyundai merged 1 commit into
devfrom
MWPW-195082

Conversation

@sharmeebuilds
Copy link
Copy Markdown
Collaborator

@sharmeebuilds sharmeebuilds commented May 13, 2026

Summary

  • Fix typo in scripts.js: window.locaton.reload() → window.location.reload()

The misspelling caused a silent TypeError on IMS token expiry — window.locaton is undefined, so .reload() would throw instead of refreshing the page. This means expired
sessions were never recovered via page reload.

Test Plan

  • Manual: Sign in to an event page, let the IMS token expire (or simulate expiry by calling window.adobeIMS.signOut() then triggering onTokenExpired), and confirm the page
    reloads instead of throwing a console error
  • Smoke: Load an event page on stage with a valid IMS session and verify normal login/logout flow is unaffected
  • npm run lint passes (no new lint errors)
  • npm test passes

Resolves: MWPW-195082

Test URLs:

@aem-code-sync
Copy link
Copy Markdown

aem-code-sync Bot commented May 13, 2026

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

@sharmeebuilds sharmeebuilds changed the title Fixed typo for window reload [MWPW-195082] Fixed typo for window reload May 13, 2026
@aem-code-sync
Copy link
Copy Markdown

aem-code-sync Bot commented May 13, 2026

Page Scores Audits Google
📱 /?martech=off PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
🖥️ /?martech=off PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@qiyundai qiyundai merged commit 1b51de3 into dev May 13, 2026
6 of 7 checks passed
@qiyundai qiyundai mentioned this pull request May 29, 2026
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants