GithubHelp home page GithubHelp logo

Remove / about route HOT 8 CLOSED

riot avatar riot commented on May 25, 2024
Remove /

from route.

Comments (8)

cognitom avatar cognitom commented on May 25, 2024 3

@pfrlv, gotcha. We might need normalization for base().
A temporary solution is here:

route.base('/translators/');

I'll write the fix soon.

from route.

cognitom avatar cognitom commented on May 25, 2024

That seems strange...
I couldn't reproduce it. Could you show the minimal example? HTML and tag files.

from route.

pfrlv avatar pfrlv commented on May 25, 2024

route.base('/translators')

<div if={ !is_login } >
      <a href="/translators/login">Log in</a>
</div>

route settings in app.js
link in nav.tag

And after click i have https://sample.io/translatorslogin

from route.

cognitom avatar cognitom commented on May 25, 2024

I need entire code to understand your situation...
Can you try to open this link, and create an example?
http://riotjs.com/examples/plunker/?app=bug-reporter

I know plunker doesn't support routing for history API, so you don't have to make it perfect.

from route.

pfrlv avatar pfrlv commented on May 25, 2024

@cognitom http://plnkr.co/edit/meCJYbnkthLDwmGEf6U9
Hmmmm....

http://run.plnkr.co/S0mfHEi2YaPUvsyu/

— maybe i’m stupid

from route.

pfrlv avatar pfrlv commented on May 25, 2024

@cognitom i do not want to rush to answer, but what is it?

from route.

no-wa-ke avatar no-wa-ke commented on May 25, 2024

@cognitom that does not seem to work when you access without slash(/)...
is this a server-related problem?

http://plnkr.co/edit/qHu7MqCYXxnnHK2MizGu?p=preview
if you click move to /login, it supposed to mount tag, but it seems like it needs /.

is this expected behavior?

from route.

GianlucaGuarini avatar GianlucaGuarini commented on May 25, 2024

Closing this issue because it's related to an old router version. Please update to the latest @riotjs/route version if you can.

from route.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.