Skip to content

4Minitz is not runnable in a URL with subfolder like https://www.company.com/4minitz (ROOT_URL) #152

@derwok

Description

@derwok

Problem

If 4Minitz shall be reachable via a subfolder URL like https://www.company.com/4minitz this must be specified with the ROOT_URL environment variable. Nevertheless 4Minitz is not prepared to be reachable via non-"root" URL. Quite some errors show up...

Steps to reproduce:

Launch 4Minitz locally in develop mode like so:

export ROOT_URL=http://localhost:3100/4minitz
meteor run --port 3100 --settings ./settings.json

Open WebApp in Browser via http://localhost:3100/4minitz

Errors:

  1. The IronRouter seems not to respect the ROOT_URL. Iron:Router shows error: "Oops, looks like there's no route on the client or the server for url: http://localhost:3100/4minitz"
  2. These URLs show in the browser console as 404 errors:
    4minitz:34 GET http://localhost:3100/node_modules/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css
    4minitz-at-mp.png:1 GET http://localhost:3100/4minitz-at-mp.png 404 (Not Found)
    apple-touch-icon-120x120.png:1 GET http://localhost:3100/apple-touch-icon-120x120.png 404 (Not Found)

First analysis

It seems Iron Router is not prepared to handle situations where ROOT_URL has a subfolder attached. At least there is an open Pull Request for this issue:
iron-meteor/iron-url#17

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions