in reply to Re^2: Mojolicious: Optional placeholder and template name
in thread Mojolicious: Optional placeholder and template name

Did you try
<script src="/monomapdata.js" type="text/javascript"></script>
?

Replies are listed 'Best First'.
Re^4: Mojolicious: Optional placeholder and template name
by frazap (Monk) on May 21, 2019 at 11:43 UTC
    Yes ... That works too...

    How come ? Why ?

      • "monomapdata.js" (without leading slash) means "current directory"
      • "/monomapdata.js" (with leading slash) means "top directory"