andrewdavey / andrewdavey/cassette

Configure the the root handler prefix

Open
#334 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
531
Forks
139
PR merge metrics
No merged PRs in 30d

Description

I'd like to be able to change /cassette.axd/ to /assets/. I know the `master` branch made `UrlGenerator` public, but for 2.0.0 I've created a hack:

``` csharp
public class CassetteOverridesConfiguration : IConfiguration
{
public void Configure(TinyIoCContainer container)
{
container.Register((c, n) =>
{
var urlGeneratorType = typeof(IUrlGenerator).Assembly.GetTypes().Single(t => t.Name == "UrlGenerator");
return (IUrlGenerator)Activator.CreateInstance(urlGeneratorType,
c.Resolve(), "assets/");
});
}
}
```

And inside my `web.config`:

``` xml

```

Visiting just /assets/ displays the diagnostic page. However, when attempting to load the assets, it 404s.

And this makes sense since `RawFileRequestRewriter`, `CassetteHttpModule` are hard coded to use `cassette.axd`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.