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

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 moved this task from Backlog to Good first tasks on the PAWS board.
Chicocvenancio subscribed.

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 "acl*outreachy-mentors (Project)".Feb 26 2020, 9:19 PM
srishakatux subscribed.

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

srishakatux changed the visibility from "acl*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?