Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Use absolute path for SmartGwtScriptInjector when generating loadScriptTagFiles.js?

    I am trying to figure out if it is possible to give SmartGwtScriptInjector an absolute path to use for the sc directory when it generates the loadScriptTagFiles.js

    For SEO purposes, I am using urls like these in my webapp:
    https://dev.3dmathpuzzles.com/3dmp/D...k-00005-3.html

    But, the sc code is actually in webapps/3dmp/Play/sc/ on my server.

    The generated loadScriptTagFiles.js is trying to load the modules via relative urls which begin with Play/sc so it does not find them.

    I need it to prepend "/3dmp/" to the urls it loads so they will be:
    /3dmp/Play/sc/modules/ISC_Core.js;
    /3dmp/Play/sc/modules/ISC_Foundation.js
    /3dmp/Play/sc/modules/ISC_Containers.js
    etc...

    I know I can add the script src tags into my html file, but that can lead to human error, especially when updating SmartGWT versions or changing which modules I am going to use.
    I am hoping there is an automated way to do this.

    Thanks!
Working...
X