Detect whether or not URL is recognized by router

Open
#5 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
frontend, web-dev

Research direction

No file or test is named. Start by locating the Ember router integration and the entry point exposing router.recognize(urlPath); verify how same-domain URLs and relative pathnames are handled, then confirm the boolean return contract and add coverage showing recognized and unrecognized routes.

Written by the indexing model from the issue text.

Description

enhancement

A function that does this:

  1. Check whether or not a URL has the same domain as the Ember application (insert regex/window code here)
  2. If so, then get the relative pathname and check to see if it is recognized by the router router.recognize(urlPath) and return a boolean accordingly (return value can be up for debate imo)
Dominant language
JavaScript
Stars
5
Forks
1
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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.

More from emberjs/ember-debug

All issues in emberjs/ember-debug

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.