Skip to content

Commit ceacfe5

Browse files
committed
Fixed stay on same page for version selector (9.5.5 regression)
1 parent 937d7cc commit ceacfe5

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

material/templates/assets/javascripts/bundle.e2f4ecc1.min.js renamed to material/templates/assets/javascripts/bundle.5cfa9459.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/templates/assets/javascripts/bundle.e2f4ecc1.min.js.map renamed to material/templates/assets/javascripts/bundle.5cfa9459.min.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@
249249
</script>
250250
{% endblock %}
251251
{% block scripts %}
252-
<script src="{{ 'assets/javascripts/bundle.e2f4ecc1.min.js' | url }}"></script>
252+
<script src="{{ 'assets/javascripts/bundle.5cfa9459.min.js' | url }}"></script>
253253
{% for script in config.extra_javascript %}
254254
{{ script | script_tag }}
255255
{% endfor %}

src/templates/assets/javascripts/integrations/version/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,13 @@ export function setupVersionSelector(
128128
return EMPTY
129129
}),
130130
switchMap(url => {
131-
const { version } = urls.get(url)!
132131
return fetchSitemap(new URL(url))
133132
.pipe(
134133
map(sitemap => {
135134
const location = getLocation()
136-
const path = location.href.replace(config.base, "")
135+
const path = location.href.replace(config.base, url)
137136
return sitemap.has(path.split("#")[0])
138-
? new URL(`../${version}/${path}`, config.base)
137+
? new URL(path)
139138
: new URL(url)
140139
})
141140
)

0 commit comments

Comments
 (0)