Out of curiosity, what functionality are you actually trying to achieve?

I'm trying to understand the need behind wanting to be dynamic in ignoring
a certain part of the url.

Can you give some URL examples that show what you want to achieve?



On Tue, Sep 13, 2016 at 8:12 PM, OvermindDL1 <[email protected]> wrote:

> Does not work in my case of needing to specify a part of the url to ignore
> and to only change the remaining part.  Right now I just have this in my
> code to 'work around it for now':
> ```
> module SomeApp.Hacks exposing (..)
>
> {-| https://github.com/elm-lang/navigation/issues/9
> -}
>
> navigationHack : String
> navigationHack =
>     "/some"
> ```
>
> On Tuesday, September 13, 2016 at 10:15:37 AM UTC-6, Peter Damoc wrote:
>>
>>
>>
>> On Tue, Sep 13, 2016 at 6:55 PM, <[email protected]> wrote:
>>
>>>
>>> 2. Giving the Url-Parser (of the Navigation package) access to the
>>> program flags.
>>>
>>> This was a little show stopper for me. I wanted to write a single page
>>> app that does not have to be recompiled if you switch the language.
>>> Different language files are built in, and there is a flag to choose the
>>> language. The problem is, that the paths in the url (after the hash) should
>>> also be in the chosen language. The url parser does not have access to the
>>> model (and I don't see how it could), but it could at least get access to
>>> the flags. I think that could be accomlished easily in
>>> Navigation.programWithFlags.
>>>
>>
>> Wouldn't be easier to just prefix all the urls with the language
>>
>> domain.com/#/en/some/path
>> domain.com/#/fr/vive/la/france
>>
>> This way you could look at the hash/location, figure the language, and
>> then chose the appropriate parser for that language.
>> (this is what I did in my app)
>>
>>
>>
>>
>> --
>> There is NO FATE, we are the creators.
>> blog: http://damoc.ro/
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
There is NO FATE, we are the creators.
blog: http://damoc.ro/

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to