Results 1 to 2 of 2

Thread: Route with parameters

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Sep 2016
    Posts
    3

    Default Route with parameters

    I create ExtReact app use the follow commands:
    npm install -g yo @extjs/generator-ext-react
    yo @extjs/ext-reactand change
    <Route path="/about" component={About} />
    to
    <Route path="/about/:username" component={About} />
    and launch: npm start

    When go to http://localhost:8081/about/Piter then ExtReact try load from incorrect path
    http://localhost:8081/about/ext-reac...a096894ad7f464
    http://localhost:8081/about/ext-reac...a096894ad7f464
    http://localhost:8081/about/app.js?b385f3a096894ad7f464

    How fix it ?

  2. #2
    Sencha - Sustaining Engineer tristan.lee's Avatar
    Join Date
    Mar 2015
    Location
    Central Ohio
    Posts
    1,579

    Default

    This is not an ExtReact issue. It's likely how the server is configured to handle real URLs. Dev builds use the webpack-dev-server so there may need to be additional configurations made to it to get those URLs to be handled correctly. I see that historyApiFallback is true already. Perhaps there is more necessary.

    You can read more at the react-router docs: https://github.com/ReactTraining/rea...ng-your-server
    Tristan Lee
    Sencha Inc - Sustaining Engineer


    Having an issue? Help us help you - be detailed; provide some code; demonstrate with a fiddle (fiddle.sencha.com)

    Embed your fiddle in your post: [FIDDLE]id[/FIDDLE]

Similar Threads

  1. Project build breaks in SA 4.2.1 after upgrading to 6.5.x / Ext.app.route.Route
    By rmaliborski in forum Sencha Architect 4.x: Bugs
    Replies: 2
    Last Post: 21 Jul 2017, 2:25 AM
  2. [OPEN] Can not add Before Route function parameters
    By blomasky in forum Sencha Architect 3.x: Bugs
    Replies: 4
    Last Post: 14 Oct 2014, 12:04 PM
  3. Ext Route #
    By zehavibarak in forum Ext: Q&A
    Replies: 4
    Last Post: 1 Nov 2012, 3:44 PM
  4. Add Dynamic Parameters to Proxy Route
    By UbuntuPenguin in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 28 Dec 2011, 5:21 PM
  5. Ext.util.Router & Ext.util.Route - Default Route proposal
    By HendrixMH in forum Ext: Discussion
    Replies: 2
    Last Post: 20 Nov 2011, 12:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •