Announcement

Collapse
No announcement yet.

HS4 Beta 4.1.100.0 (4.2 Beta) is available

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

    Originally posted by dcorsus View Post

    spud
    SOLVED: Ok I found the issue why this link wasn't working, not sure when I broke it :-(
    However still curious to hear what the internal discussion led to ....
    We decided to keep allowing to register several pages with the same html page but with different query parameters
    i.e

    HomeSeerSystem.RegisterFeaturePage(Id, "sample-blank.html?id=1", "Sample Blank Page 1");
    HomeSeerSystem.RegisterFeaturePage(Id, "sample-blank.html?id=2", "Sample Blank Page 2");

    And we fixed the HS web server so that a post request to a html page with or without query parameters are passed to the plugin as long as the html page has been registered at least once (with or without query parameters)

    i.e post to any of the 4 following urls are passed to the plugin.

    /HomeSeerSamplePlugin/sample-blank.html?id=1
    /HomeSeerSamplePlugin/sample-blank.html?id=2
    /HomeSeerSamplePlugin/sample-blank.html?foo=bar
    /HomeSeerSamplePlugin/sample-blank.html


    Comment


      Originally posted by spud View Post

      We decided to keep allowing to register several pages with the same html page but with different query parameters
      i.e

      HomeSeerSystem.RegisterFeaturePage(Id, "sample-blank.html?id=1", "Sample Blank Page 1");
      HomeSeerSystem.RegisterFeaturePage(Id, "sample-blank.html?id=2", "Sample Blank Page 2");

      And we fixed the HS web server so that a post request to a html page with or without query parameters are passed to the plugin as long as the html page has been registered at least once (with or without query parameters)

      i.e post to any of the 4 following urls are passed to the plugin.

      /HomeSeerSamplePlugin/sample-blank.html?id=1
      /HomeSeerSamplePlugin/sample-blank.html?id=2
      /HomeSeerSamplePlugin/sample-blank.html?foo=bar
      /HomeSeerSamplePlugin/sample-blank.html

      Ah excellent, thanks for the update!

      Comment

      Working...
      X