Page MenuHomePhabricator

Non-notebook files don't redirect to paws-public when URL is changed
Open, LowestPublic

Description

With Jupyter notebooks, I can change paws.wmflabs.org to paws-public.wmflabs.org and everything renames properly. But with HTML, CSV, or other files in the editor, it gives me a broken url when I change from paws to paws-public.

For example, changing http://paws.wmflabs.org/paws/user/Staeiou/edit/cv/_talks/cluster_map/map.html to paws-public gives me https://paws-public.wmflabs.org/paws-public/user/Staeiou/edit/cv/_talks/cluster_map/map.html. I can manually change this to https://paws-public.wmflabs.org/paws-public/User:Staeiou/cv/_talks/cluster_map/map.html and see the file, but it takes additional work.

Event Timeline

Staeiou created this task.Aug 19 2016, 10:49 PM
Capt_Swing added subscribers: Capt_Swing, Zppix.

@Staeiou I just merged in an old request of mine, which is essentially the same, but less detailed ;)

Chicocvenancio triaged this task as Lowest priority.Mar 2 2018, 5:14 PM
Chicocvenancio moved this task from Backlog to Easy tasks on the PAWS board.
Chicocvenancio added a subscriber: Chicocvenancio.

This can be solved by improving the paws-public nginx config https://github.com/yuvipanda/paws/blob/master/images/nbserve/nginx.py

srishakatux changed the visibility from "Public (No Login Required)" to "Outreachy Mentors (Project)".Feb 26 2020, 9:19 PM
srishakatux added a subscriber: srishakatux.

(we'll open this task on March 5th - when the contribution period opens)

srishakatux changed the visibility from "Outreachy Mentors (Project)" to "Public (No Login Required)".Mar 5 2020, 6:24 PM

I think we're changing the third level domain which is leading to the broken url. I tried searching on StackOverflow, but couldn't find much. Can anyone please guide me further with this?