Take Meteor ROOT_URL - setting into account when generating URLs and routing #13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello, I finally got around to update the project I needed this for to IronRouter 1.0+ ... unfortunately the patches I did for the old branch didn't work anymore, so I re-did the "incorporation of the ROOT_URL subdirectory" - fix.
It's not an elegant thing, unfortunately I didn't get around to study the whole Middleware-Concept and if it could help me. I did the patches and tested URL generation and route resolution as far as I could using my project, and it seems to be working alright.
The patch is done solely updating Iron.Url, but of course the Iron Router needs to be updated to reference the newer Iron.Url - package.
Unfortunately I couldn't just create a new fork of Iron-Router using my github account because I already have a fork (and github wants to create the fork with the same name as the original repo, so that's a problem there) and apparently I can't create a pull request from my "custom-cloned and then pushed to gitbub" - clone of IronRouter, but here's the pull request and the changes which would need to be made to IronRouter: https://github.com/DanielDornhardt/iron-router-2/compare/incorporateMeteorROOT_URLSetting?expand=1
It'd be great if somebody would look this over and then merge it into IronRouter proper?
Please let me know if there is something which would need to be changed for this to be accepted, I'd find it very useful and reasonable to have this supported by Iron-Router.
Thanks and best wishes
Daniel :)