{"action":"created","issue":{"url":"https://api.github.com/repos/RickStrahl/WestWindWebSurge/issues/50","repository_url":"https://api.github.com/repos/RickStrahl/WestWindWebSurge","labels_url":"https://api.github.com/repos/RickStrahl/WestWindWebSurge/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/RickStrahl/WestWindWebSurge/issues/50/comments","events_url":"https://api.github.com/repos/RickStrahl/WestWindWebSurge/issues/50/events","html_url":"https://github.com/RickStrahl/WestWindWebSurge/issues/50","id":301592920,"number":50,"title":"SiteValidator and UI-Router for AngularJS","user":{"login":"scottiemc7","id":1521455,"avatar_url":"https://avatars3.githubusercontent.com/u/1521455?v=4","gravatar_id":"","url":"https://api.github.com/users/scottiemc7","html_url":"https://github.com/scottiemc7","followers_url":"https://api.github.com/users/scottiemc7/followers","following_url":"https://api.github.com/users/scottiemc7/following{/other_user}","gists_url":"https://api.github.com/users/scottiemc7/gists{/gist_id}","starred_url":"https://api.github.com/users/scottiemc7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottiemc7/subscriptions","organizations_url":"https://api.github.com/users/scottiemc7/orgs","repos_url":"https://api.github.com/users/scottiemc7/repos","events_url":"https://api.github.com/users/scottiemc7/events{/privacy}","received_events_url":"https://api.github.com/users/scottiemc7/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-01T23:02:53Z","updated_at":"2018-03-02T04:34:43Z","closed_at":"2018-03-02T04:34:43Z","author_association":"NONE","body":"Hi,\r\n\r\nI was recently trying out Web Surge and ran into an issue. When I include any path from my AngularJS SPA, I get an error message telling me I can't run the stress test on the server, and that I need to either put the websurge-allow.txt file in the root or update robots.txt with \"#Allow: WebSurge\". Web Surge seems to be taking issue with the hash that I have in my url - https://www.awesomeurl.com/application#/dashboard. Looking at WebSurge.Core/SiteValidator.cs, the method that is parsing the root from my url looks like this \r\n\r\n        string GetServerRootUrl(string url)\r\n        {\r\n            // fix up if stress tester is replacing the domain\r\n            if (!string.IsNullOrEmpty(StressTester.Options.ReplaceDomain))\r\n                url = StressTester.ReplaceDomain(url);\r\n\r\n            var uri = new Uri(url);            \r\n            var builder = new UriBuilder(uri);            \r\n            \r\n            builder.Path = string.Empty;\r\n            builder.Query = string.Empty;\r\n            return builder.ToString();\r\n        }\r\n\r\nFor my example url, that returns https://www.awesomeurl.com:443/#/dashboard, which is obviously not the root and so it looks like I'm stuck. Would it make sense to change the last line of GetServerRootUrl to\r\n\r\n       //return builder.ToString();\r\n      return builder.Scheme + \"://\" + builder.Host + \":\" + builder.Port + \"/\";\r\n    }\r\nor something similar?"},"comment":{"url":"https://api.github.com/repos/RickStrahl/WestWindWebSurge/issues/comments/369817633","html_url":"https://github.com/RickStrahl/WestWindWebSurge/issues/50#issuecomment-369817633","issue_url":"https://api.github.com/repos/RickStrahl/WestWindWebSurge/issues/50","id":369817633,"user":{"login":"scottiemc7","id":1521455,"avatar_url":"https://avatars3.githubusercontent.com/u/1521455?v=4","gravatar_id":"","url":"https://api.github.com/users/scottiemc7","html_url":"https://github.com/scottiemc7","followers_url":"https://api.github.com/users/scottiemc7/followers","following_url":"https://api.github.com/users/scottiemc7/following{/other_user}","gists_url":"https://api.github.com/users/scottiemc7/gists{/gist_id}","starred_url":"https://api.github.com/users/scottiemc7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottiemc7/subscriptions","organizations_url":"https://api.github.com/users/scottiemc7/orgs","repos_url":"https://api.github.com/users/scottiemc7/repos","events_url":"https://api.github.com/users/scottiemc7/events{/privacy}","received_events_url":"https://api.github.com/users/scottiemc7/received_events","type":"User","site_admin":false},"created_at":"2018-03-02T04:34:43Z","updated_at":"2018-03-02T04:34:43Z","author_association":"NONE","body":"Actually, I'm slowly realizing that this may not be the right tool for a front end heavy website, so there's no actual issue here."}}
{"actor":{"display_login":"scottiemc7"}}