In studio, "Preview" seems to not work in rerun course (GG101x)
Description
The course was created with the "rerun this course" feature.
https://studio.edx.org/course/course-v1:BerkeleyX+GG101x-2+1T2015
For units with unpublished content, "Preview" always takes the viewer to the page "PAGE NOT FOUND The page that you were looking for was not found. Go back to the homepage or let us know about any pages that may have been moved at technical@edx.org."
To me, it looks like the "preview" button is trying to take you to a link that looks like how the original course constructed link locations (i.e. .../courses/[course]/[number]....), not like how the new rerun course constructs link locations (/courses/course_v1:[course][number][run]...)
Steps to Reproduce
1) In a rerun course, edit a component
2) Click preview
3) 404
------
1. As of writing this ticket, here are units with unpublished content, as well as the link you get when clicking "preview"
Try preview in:
https://studio.edx.org/container/block-v1:BerkeleyX+GG101x-2+1T2015+type@vertical+block@5f344aff239549e7a8ae649a39549f27
Get (page not found):
https://preview.edx.org/courses/BerkeleyX/GG101x-2/course/courseware/b57fa0878c224f5c859ef6439ad0a5b6/9748813fcf24485c91ec0faa8903d2b8/2
Try:
https://studio.edx.org/container/block-v1:BerkeleyX+GG101x-2+1T2015+type@vertical+block@c695de2de92c4ffb9fcde037635027f7
Get:
https://preview.edx.org/courses/BerkeleyX/GG101x-2/course/courseware/c5d0794a907947c98588986eee6c987b/c12df62677f14936b8d960d47b9c8218/5
Try:
https://studio.edx.org/container/block-v1:BerkeleyX+GG101x-2+1T2015+type@vertical+block@acf5d92043d04e46bba2b4d4cff9ae8d
Get:
https://preview.edx.org/courses/BerkeleyX/GG101x-2/course/courseware/9a813d84b92b4d06aecee1e76bb9b878/79e1c2c2dd1b40f786b596c1dd38fd6c/5
Current Behavior
Expected Behavior
Reason for Variance
Release Notes
User Impact Summary
Activity
, please confirm that this is fixed on prod?
Thanks! We shared that work-around with the course team so they could keep editing in the interim!
, good call! it definitely looks like the url construction is messed up. This link, for example, works fine: https://preview.edx.org/courses/course-v1:BerkeleyX+GG101x-2+1T2015/courseware/b57fa0878c224f5c859ef6439ad0a5b6/9748813fcf24485c91ec0faa8903d2b8/2
We discovered this concurrently with https://openedx.atlassian.net/browse/TNL-990, which may be an entirely separate issue.