Skip to content

Commit a826e03

Browse files
authored
Revert "Bugfix when baseurl is missing or empty in json (#371)" (#374)
This reverts commit 3c70635.
1 parent ce486b6 commit a826e03

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Resources/js/router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Router {
4646
* @param {Object} data
4747
*/
4848
setRoutingData(data) {
49-
this.setBaseUrl((data['base_url'] && data['base_url'].length > 0) ? data['base_url'] : window.location.host);
49+
this.setBaseUrl(data['base_url']);
5050
this.setRoutes(data['routes']);
5151

5252
if ('prefix' in data) {

Resources/public/js/router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ var Router = function () {
6767
* @param {Object} data
6868
*/
6969
value: function setRoutingData(data) {
70-
this.setBaseUrl(data['base_url'] && data['base_url'].length > 0 ? data['base_url'] : window.location.host);
70+
this.setBaseUrl(data['base_url']);
7171
this.setRoutes(data['routes']);
7272

7373
if ('prefix' in data) {

Resources/public/js/router.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)