Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • nonoandy 6 posts 26 karma points
    Aug 21, 2020 @ 13:39
    nonoandy
    0

    Wildcard for paths using ReservedUrls or ReservedPaths. Or any other ideas

    I have made a Angular Application and embedded it into an Umbraco. (using Templates and Document Types)

    Example: Go to page https://myUmbraco.com/myApp the Angular single page will load and works fine unless someone press F5 then Umbraco routing takes over giving then a 404 ugly page.

    If I could do the following wildcard that would be a ideal fix: [add key="Umbraco.Core.ReservedPaths" value="~/myApp/*" ] (but it doesn't work)

    Something like that would allow Umbraco to handle the routing up to the point, then hand the routing over to Angular and ignores other URL's past that point.

    Thoughts?

  • nonoandy 6 posts 26 karma points
    Aug 21, 2020 @ 14:45
    nonoandy
    0

    I found a way of making the users start over instead of giving them a 404 but that still isn't ideal.

    <rewrite>
        <rules>
            <rule name="Catch browser refresh and start user over">
                <match url="myApp/([_0-9a-z-]+)" />
                <action type="Rewrite" url="myApp/" />
            </rule>
        </rules></rewrite>
    
Please Sign in or register to post replies

Write your reply to:

Draft