ember-learn / ember-learn/ember-api-docs

Some internal links lead to server error pages

Aperta
#613 1 commento 1 reazione 0 assegnatari Vedi su GitHub
🐞bug
Lingua principale
JavaScript
Stelle
75
Fork
111
Merge medio
45m
PR unite (30g)
1

Descrizione

I was looking at the page https://api.emberjs.com/ember/3.9/classes/Location, and when attempting to click on one of the links within the page resulting in the following server error:
`Cannot GET /api/ember/release/classes/HashLocation`

![Screen Shot 2019-04-27 at 12 18 11 AM](https://user-images.githubusercontent.com/1759897/56844678-2bb79700-6882-11e9-9cf7-3045ad0a6675.png)

The main issue being that the relative path defined in the ember.js repository is pointing to `/api/ember/...` instead of `/ember/...`. Removing the `/api` portion of the URL takes me to the correct location.

I have found that the issue on this particular page goes as far back as 2.16. Which, for the same link, gives the error `Cannot GET /api/classes/Ember.Location.HashLocation`.

![Screen Shot 2019-04-27 at 12 28 49 AM](https://user-images.githubusercontent.com/1759897/56844755-8271a080-6883-11e9-9909-dc9ff0dfeab9.png)

Again, removing the `/api` portion of the 2.16 URL does redirect me to the correct page on the current release.

There is the potential for an issue to be opened up on the ember.js repo to update the relative links within the documentation for the current release going forward, but figured I'd start here first.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia riproducendo i link non funzionanti della pagina Location di Ember 3.9 e confrontali con quelli della pagina corrispondente della versione 2.16. Traccia il modo in cui il visualizzatore della documentazione API costruisce questi URL relativi e identifica dove viene introdotto il segmento /api aggiuntivo. Il lavoro è completato quando i link interessati puntano alle pagine di documentazione corrette nelle versioni segnalate.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript
Ambito
documentation
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.