Skip to content

Flutter_web navigation should provide a way to customize url strategy #33245

@rohitkumarluthra

Description

@rohitkumarluthra

Hi Flutter Team,
I am from react background as I just started using the flutter web. I am trying to use the named routes in flutter web. For example I have 3 routes as shown in below code:

Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      initialRoute: '/',
      routes: <String, WidgetBuilder> { //5 
        '/': (context) => MyHomePage(title: 'Home Page'),
        '/first': (BuildContext context) => new FirstPage(), //6
        '/second' : (BuildContext context) => new SecondPage() //7
      },
    );
  }

So there is a requirement:
There should be a way to remove hash symbol(#) because currently it shows the url like http://localhost:8080/#/

Use case

Proposal

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: qualityA truly polished experiencec: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Fluttercustomer: crowdAffects or could affect many people, though not necessarily a specific customer.customer: web10frameworkflutter/packages/flutter repository. See also f: labels.platform-webWeb applications specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions