RunestoneInteractive / RunestoneInteractive/rs

Author Tools option in instructor's user menu is an absolute URL to production

Open
#886 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
69
Forks
117
Avg merge
6d 4h
Merged PRs (30d)
24

Description

The Author Tools menu option in the instructor's user menu which displays on the course home page (ns/course/index) is a URL that leads to production (https://author.runestone.academy/author) instead of a relative URL. This displays an error when clicked in localhost or self-hosted installs.

Steps to Reproduce:

  1. Log in as an instructor.
  2. After logging in as an instructor with an existing course: Ensure you have an active course available.
  3. Click the User Menu from navbar and select Course Home.
  4. Once the Course Home page loads, locate and click the blue user icon on the right side of the screen.
  5. From the dropdown, select Author Tools.

Expected : The Author Tools page should load successfully, as the user is logged in.

Actual Behavior:
Clicking Author Tools results in the following error message:

{ "detail": "You need to be Logged in to access this resource" }

Please change this to a relative URL so that it works in any environment.

Image

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.

Research direction

Start at ns/course/index and inspect the Author Tools menu option and its URL. Change the production URL to a relative URL, then verify the link works from localhost or a self-hosted install without the login error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.