Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Courseware base url should be taken from site configuration #32639

Open
zahid-arbisoft opened this issue Jul 3, 2023 · 0 comments
Open

Courseware base url should be taken from site configuration #32639

zahid-arbisoft opened this issue Jul 3, 2023 · 0 comments

Comments

@zahid-arbisoft
Copy link

zahid-arbisoft commented Jul 3, 2023

I came across a situation where I had two different sites for LMS. The URL for courseware was generating wrong for one site due to following edx-platform code

        jump_to_courseware_url = reverse(
            'jump_to',
            kwargs={
                'course_id': str(block_key.course_key),
                'location': str(block_key),
            },
            request=self.context['request'],
        )

In code, mostly edx is using configuration_helpers to get env variables. Is it possible to get the base URL using configuration_helpers for courseware URLs, and also for the bookmark, resume course button, etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant