ui-router / ui-router/angular

Incorrect Ui Routing on iOS 17 safari private browsing mode.

Open
#988 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
365
Forks
139
PR merge metrics
No merged PRs in 30d

Description

we are having a weird issue related to ui routing on iOS 17 safari private browsing mode. It was working fine on iOS 16 and currently, working fine on iOS17 non-private browsing mode. Chrome, FireFox work fine also.

I have a created a sample app and hosted for you on our aws.
Here is the link - https://qaembed.s3.amazonaws.com/ios-safari-private-browsing-issue.html

if you go the page and click on "Click Here to Watch the Video" link then request goes to our server and it does a 302 re-routing. It does re-routing to a hash url and we have the state which protal.video loaded for the hash url.

It works as expected on desktop and mobile browser except iOS 17 safari private mode.

on iOS 17 private mode browser, looks like it is not considering the hash part and directly going to our portal entry state which portal.dashboard and we don't allow this type of user to go to our dashboard state.

I tried to debug uiRouter.js but ended up with no luck. somehow, the hash part is getting dropped.

Could you please help me out here? Thanks a lot in advance.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the routing failure using the linked sample app in iOS 17 Safari private browsing, then start by tracing hash handling in uiRouter.js after the server's 302 redirect. Done means the hash is preserved and the portal reaches the state associated with that hash instead of portal.dashboard.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.