Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Suggestion: Fix the about 27,100 broken links broken when Shared Files Were Moved

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Suggestion: Fix the about 27,100 broken links broken when Shared Files Were Moved

    NinjaScript Shared files are currently located at ninjatraderecosystem.com. Previously, the Shared Files were accessed with links to http://www.ninjatrader.com/support/f...ocal_links.php. The move to ninjatraderecosystem.com broke about 27,100 links that referenced the removed local_links.php.

    All of the broken links could be fixed at once if a new PHP file at http://www.ninjatrader.com/support/f...ocal_links.php were to do an HTML page redirect to the appropriate page at ninjatraderecosystem.com. Broken links to local_links.php are in the form http://www.ninjatrader.com/support/f...=x&linkid=xxxx , where xxxx is the download page number for the Shared File. The suggestion is that when a new local_links.php is linked to with ?catid=x&linkid=xxxx , it redirect to the appropriate page in ninjatraderecosystem.com . This will fix all of the about 27,1000 currently broken links, including those currently in ninjatraderecosystem.com.

    HTML Redirection reference at http://www.w3docs.com/snippets/html/...nt%20attribute

    "The simplest way to redirect to another URL is to use an HTML <meta> tag with the http-equiv parameter set to “refresh”. The content attribute sets the delay before the browser redirects the user to the new web page. To redirect immediately, set this parameter to “0” seconds for the content attribute."
    Last edited by Jim W.; 06-20-2021, 08:27 AM.

    #2
    Hello Jim W.,

    Thank you for your feedback. I will forward your note to our IT.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      On June 20 my suggestion https://ninjatrader.com/support/foru...les-were-moved was forwarded to IT.

      Please follow-up with them to see if they may act on the suggestion or it was DOA.

      Comment


        #4
        Hello Jim W.

        When the forum NinjaScript files were moved to the User App Share, pages were created dynamically to host their associated NinjaScript files.

        Where things stand now, going back and changing these links retroactively is a monumental task that really does not have a means to accomplish efficiently.

        With website migrations and the move of the forum repository to the User App Share, this would be a growing pain that comes with the move. We are happy to advise users on how they can better search the User App Share to recover files that may have a broken link, and the NinjaScript File Sharing forum would be the place for any user trying to find an old forum script to ask for help.

        Let us know if you have any additional questions.
        JimNinjaTrader Customer Service

        Comment


          #5
          NinjaTrader_Jim,

          I understand that when the forum NinjaScript files were moved to the User App Share, pages were created dynamically to host their associated NinjaScript files. After the move, newly created URLs for them were Ninjatraderecosystem.com/user-app-share-download/_Title_/ or Ninjatraderecosystem.com/user-app-share-download/_Title_-N/ and this is also true for all submitted files after the move.

          None of these Ninjatraderecosystem.com URLs are broken and I am not suggesting any changes to them.

          Prior to the move the links to the forum NinjaScript files were ninjatrader.com/support/forum/local_links.php?catid=N,&linkid=NNN , where catid identified the type of file and linkid was an integer identifying the specific file.

          Using my moved Indicator "Set NinjaTrader's Process Priority to High" as an example, the URLs before the move were:

          NT 7: ninjatrader.com/support/forum/local_links.php?catid=4&linkid=656
          NT 8: ninjatrader.com/support/forum/local_links.php?catid=7&linkid=699

          The above links are now broken because ninjatrader.com/support/forum/local_links.php no longer directs to the specific moved file's page in ninjatraderecosystem.com . Instead, in the NT 7 URL, the trader is directed to first User App Share page with URL ninjatraderecosystem.com/user-app-share/?routestring=local_links.php&catid=4&linkid=656 , not the moved new URL for this file's page:

          ninjatraderecosystem.com/user-app-share-download/set-process-priority-to-high-giving-it-preference-over-other-applications-that-are-running/

          When the old script local_links.php converted parameters catid and linkid to the URL of the old file's page, very likely the script used a table to lookup the parameters to get the URL of the old file's page. Also likely, the script's table contained the file's title, author, and other information.

          If local_links.php's table can be restored from a backup about the time of the move, then it could be used to get the old title associated with parameter values of catid and linkid giving, the title for a User App Share search. Continuing the example above that would be:

          ninjatraderecosystem.com/user-app-share-results/?fwp_usa_search=set-process-priority-to-high-giving-it-preference-over-other-applications-that-are-running , which returns both of my shared file's pages.

          If old local_links.php and it's table(s) can be located, in a website or developer's backup, then I would be happy to create a script that demonstrates how the 27,000+ links can be unbroken programmatically. You can contact me by private message if there is interest.

          Jim




          Last edited by Jim W.; 07-07-2021, 08:39 AM. Reason: Typo

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by fx.practic, 10-15-2013, 12:53 AM
          5 responses
          5,406 views
          0 likes
          Last Post Bidder
          by Bidder
           
          Started by Shai Samuel, 07-02-2022, 02:46 PM
          4 responses
          98 views
          0 likes
          Last Post Bidder
          by Bidder
           
          Started by DJ888, Yesterday, 10:57 PM
          0 responses
          8 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by MacDad, 02-25-2024, 11:48 PM
          7 responses
          160 views
          0 likes
          Last Post loganjarosz123  
          Started by Belfortbucks, Yesterday, 09:29 PM
          0 responses
          9 views
          0 likes
          Last Post Belfortbucks  
          Working...
          X