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

Some internal links lead to server error pages

Open
#613 1 comment 1 reaction 0 assignees View on GitHub
🐞bug
Dominant language
JavaScript
Stars
75
Forks
111
Avg merge
45m
Merged PRs (30d)
1

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.