Skip to content

Commit

Permalink
Footer: remove absolute_uri
Browse files Browse the repository at this point in the history
We don't need this anymore and help use to cache across domains.
  • Loading branch information
stsewd committed Dec 15, 2020
1 parent cc6cda4 commit 7bc54d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions readthedocs/api/v2/views/footer_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ class BaseFooterHTML(APIView):
- project
- version
- page: Sphinx's page name, used for path operations,
like change between languages (deprecated in favor of ``absolute_uri``).
- absolute_uri: Full path with domain, used for path operations.
- page: Sphinx's page name (name of the source file),
used to build the "edit on" links.
- theme: Used to decide how to integrate the flyout menu.
- docroot: Path where all the source documents are.
Used to build the ``edit_on`` URL.
Expand Down
1 change: 0 additions & 1 deletion readthedocs/core/static-src/core/js/doc-embed/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ function init() {
project: rtd['project'],
version: rtd['version'],
page: rtd['page'],
absolute_uri: window.location.href,
theme: rtd.get_theme_name(),
format: "jsonp",
};
Expand Down
Loading

0 comments on commit 7bc54d1

Please sign in to comment.