question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

option to disable redirection of /index.html#/routes to /#/routes [comp: router]

See original GitHub issue

šŸš€ feature request

Relevant Package

This feature request is for @angular/router

Description

the latter is nicer, but all browsers can’t reload an extension page with a <browser-extension-scheme>://<extension_GUID>/#/route URL, they error out, I was certainly surprised that setting an extension’s html pages location in manifest.json to ā€œindex.html#routeā€ loads the page to the correct route with no issues.

I searched for docs to confirm if (already) it can be configured and how, but found nothing.

Describe the solution you’d like

add a config option e.g ā€œdisablePageNameShorteningā€ (i’m sure you’re better than me at naming), similar to the ā€œuseHashā€ option.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
wiscommented, Jun 18, 2019

can you please assist me in finding what part of the code base of the router module is responsible for this behavior so I can disable it (in a fork) for a temporary fix? I would really appreciate it, a lot.

Edit: base-href seems to solve my issue, if I set it with the Angular-cli to ./<the-base-name-of-my-index-html> (./index.html), manually. should there be a router configuration option that does this automatically (set base-href (APP_BASE_HREF) to the html file’s base name)?

0reactions
angular-automatic-lock-bot[bot]commented, Aug 27, 2021

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular Router: Child Routes, Auxiliary Routes, Master Detail
This is a comprehensive guide to the fundamental concepts of the Angular Router: routes, paths, components, outlets.
Read more >
How to use Redirect in version 5 of react-router-dom of Reactjs
In that public folder I created the same folder name as the virtual routing. In this folder, I have an index.html with the...
Read more >
Route - Angular
A set of routes are collected in a Routes array to define a Router configuration. The router attempts to match segments of a...
Read more >
A Complete Beginner's Guide to React Router (Including ...
Setting up the router; Rendering routes; Using Links to switch pages; Passing Route parameters; Navigating programmatically; Redirecting toĀ ...
Read more >
How To Navigate Between Views with Vue Router
You will also learn the different types of routes available to you as a ... that you did not select the Vue Router...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found