encore rdoc query paramter URL

This commit is contained in:
Soufiane Fariss
2024-08-08 09:10:47 +02:00
parent 9d137a207f
commit 05575e1e92

View File

@@ -77,8 +77,9 @@ onMounted(() => {
// Check if the URL contains a rdoc parameter and load the data from that URL
const urlParams = new URLSearchParams(window.location.search);
const rdocURL = urlParams.get("rdoc");
if (rdocURL) {
const encodedRdocURL = urlParams.get("rdoc");
if (encodedRdocURL) {
const rdocURL = decodeURIComponent(encodedRdocURL);
loadFromURL(rdocURL);
}
});