Skip to content

Router URL cannot be accessed directly if parameter contains "." (dot) in it's value #8249

Closed
@dtolstyi

Description

@dtolstyi

Description
As soon as you try to access URL containing . symbol the page cannot be displayed.

Steps to reproduce and a minimal demo of the problem

  1. Create router accepting parameter, e.g.:
    { path: '/data/:date', component: DataDetails, name: 'DataDetails' }
  2. Try accessing URL from your browser: http://localhost/data/2016.05

Current behavior
An error is returned that page cannot be displayed (Error 404)

Expected/desired behavior
Corresponding component is properly displayed.

Other information

  1. If you access this URL programmatically, e.g. using:
    this._router.navigateByUrl('/data/2016.05');
    it works fine and proper component is shown.
  2. As soon as you remove . from the URL, e.g.: http://localhost/data/2016-05 it works fine as well.
    Looks like the problem is cause by . symbol.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions