Skip to content

Commit

Permalink
Support for custom URL prefix for landing page
Browse files Browse the repository at this point in the history
Add a QGIS_SERVER_LANDING_PAGE_PREFIX server
setting:

Prefix of the path component of the landing page base URL, default is empty (since QGIS 3.20).
  • Loading branch information
elpaso committed May 6, 2021
1 parent 497197e commit 27bfb09
Show file tree
Hide file tree
Showing 19 changed files with 108 additions and 42 deletions.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/server/api/ogc/static/landingpage/index.html
@@ -1 +1 @@
<!DOCTYPE html><html lang=it><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no"><link rel=icon href=favicon.ico><title>app</title><link rel=stylesheet href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900"><link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css><link href=css/chunk-06c8fa3c.09a55b1d.css rel=prefetch><link href=css/chunk-123bc409.8679d8ba.css rel=prefetch><link href=css/chunk-744799cf.0a230f6c.css rel=prefetch><link href=js/chunk-06c8fa3c.010c72ad.js rel=prefetch><link href=js/chunk-123bc409.ec41f71a.js rel=prefetch><link href=js/chunk-744799cf.70663d3c.js rel=prefetch><link href=css/app.ca3f5643.css rel=preload as=style><link href=css/chunk-vendors.a728f495.css rel=preload as=style><link href=js/app.333c53e0.js rel=preload as=script><link href=js/chunk-vendors.573fc8d0.js rel=preload as=script><link href=css/chunk-vendors.a728f495.css rel=stylesheet><link href=css/app.ca3f5643.css rel=stylesheet></head><body><noscript><strong>We're sorry but app doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.573fc8d0.js></script><script src=js/app.333c53e0.js></script></body></html>
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no"><link rel=icon href=./favicon.ico><title>app</title><link rel=stylesheet href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900"><link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css><link href=css/chunk-06c8fa3c.09a55b1d.css rel=prefetch><link href=css/chunk-123bc409.8679d8ba.css rel=prefetch><link href=css/chunk-a28d6c70.162a27d1.css rel=prefetch><link href=js/chunk-06c8fa3c.010c72ad.js rel=prefetch><link href=js/chunk-123bc409.ec41f71a.js rel=prefetch><link href=js/chunk-a28d6c70.7ed0c6db.js rel=prefetch><link href=css/app.ca3f5643.css rel=preload as=style><link href=css/chunk-vendors.a728f495.css rel=preload as=style><link href=js/app.3a5ac8de.js rel=preload as=script><link href=js/chunk-vendors.573fc8d0.js rel=preload as=script><link href=css/chunk-vendors.a728f495.css rel=stylesheet><link href=css/app.ca3f5643.css rel=stylesheet></head><body><noscript><strong>We're sorry but app doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.573fc8d0.js></script><script src=js/app.3a5ac8de.js></script></body></html>

This file was deleted.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/server/src/landingpage/public/index.html
Expand Up @@ -7,7 +7,7 @@
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<link rel="icon" href="./favicon.ico" />
<title><%= htmlWebpackPlugin.options.title %></title>
<link
rel="stylesheet"
Expand Down
Expand Up @@ -181,7 +181,7 @@ export default {
filter = `&${this.filterField.value}=${this.filterText}`;
}
fetch(
`/project/${this.project.id}/wfs3/collections/${this.typename}/items.json?limit=5&offset=${offset}${sorting}${filter}`
`./project/${this.project.id}/wfs3/collections/${this.typename}/items.json?limit=5&offset=${offset}${sorting}${filter}`
)
.then(response => {
if (!response) {
Expand Down Expand Up @@ -241,4 +241,4 @@ export default {
.btn-close {
float: right;
}
</style>
</style>

0 comments on commit 27bfb09

Please sign in to comment.