Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Redirection causing infinite digest loop in old android versions #10405

@m3kka

Description

@m3kka

Overview of the Issue
Apparently this route configuration

.when('/:test*.html', { redirectTo: function () { return 'test'; }});

is causing infinite digest loop in old android version (versions that require the hashbang mode to be enabled) with new versions of angular (problem appeared since we moved to 1.3.x).

The resulting URL should be
http://myBaseUrl/#/test
but we get something like
http://myBaseUrl/test#/test.html

Angular Version
Tested on 1.3.6

Browsers and Operating System
Every browser that requires hashbang, ie, with an UA similar to:
Mozilla/5.0 (Linux; U; Android 2.1; en-us; GT-I9000 Build/ECLAIR) AppleWebKit/525.10+ (KHTML, like Gecko) Version/3.0.4 Mobile Safari/523.12.2

Reproduce the Error
http://jsbin.com/vifisu/1/edit?html,js,output
(Sorry Plunker is unreachable since this morning)

  1. Open Chrome developer tools
  2. Select old enough phone model (I used Samsung Galaxy S, SII, W)
  3. Reload the page for the UA to be 'applied'
  4. Click on 'Redirect' in the Output window
  5. Check the browser console for the error

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions