- h = PylonsHelper()
- return render_template('json_editor.html',
- schema_url=url_for('static', filename='schema_v1.json'),
- #json_url=url_for('static', filename='latschenhuette.json')
- json_url=h.wiki(sledrun.page_title)
- )
+ mediawiki_index = f'{current_app.config["MEDIAWIKI_ROOT"]}/index.php'
+ schema_url = f'{mediawiki_index}?title=Winterrodeln:Datenschema/Rodelbahn/V1.json&action=raw'
+ json_url = f'{mediawiki_index}?title={quote_plus(sledrun.page_title)}/Rodelbahn.json&action=raw'
+ return render_template('json_editor.html', schema_url=schema_url, json_url=json_url)