Commit 14ad6a23 authored by Konstantin Schulz's avatar Konstantin Schulz
Browse files

fixed embed URLs for H5P exercises

parent 4694eea6
Pipeline #12417 failed with stages
in 2 minutes and 37 seconds
......@@ -18,7 +18,8 @@ from flask_sqlalchemy import SQLAlchemy
from open_alchemy import init_yaml
from mcserver.config import Config
db: SQLAlchemy = SQLAlchemy() # session_options={"autocommit": True}
# remove stale connections from the connection pool after 1 hour
db: SQLAlchemy = SQLAlchemy(session_options={"pool_recycle": 3600}) # session_options={"autocommit": True}
migrate: Migrate = Migrate(directory=Config.MIGRATIONS_DIRECTORY)
if not hasattr(open_alchemy.models, Config.DATABASE_TABLE_CORPUS):
# do this _BEFORE_ you add any APIs to your application
......
......@@ -315,7 +315,7 @@ export class HelperService {
configMC.backendBaseUrl = part1.concat(configMC.backendBaseApiPath).concat('/');
}
if (!configMC.frontendBaseUrl) {
configMC.frontendBaseUrl = location.protocol.concat('//').concat(window.location.host);
configMC.frontendBaseUrl = location.href.slice(0, -configMC.pageUrlHome.length);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment